-- decor_flowerbed: модель из Blockbench (decor_flowerbed.bbmodel), собранная из Part. -- СГЕНЕРИРОВАНО tools/bbmodel-to-luau.js — руками не править: правьте модель в Blockbench и генерируйте заново. -- Возвращает функцию build(parent): Model с подмоделями по группам Blockbench; рыба — в подмоделях Fish. -- PrimaryPart — невидимое основание в точке (0, 0, 0) модели (низ по центру), фасад смотрит в −Z. -- { группа, имя, размер X Y Z, центр X Y Z, точка поворота X Y Z, поворот X Y Z (рад, порядок ZYX), цвет R G B } local CUBES = { { "Box", "PlankF", 3.2, 0.2, 0.08, 0, 0.1, -0.61, 0, 0, 0, 0, 0, 0, 160, 104, 62 }, { "Box", "PlankB", 3.2, 0.2, 0.08, 0, 0.1, 0.61, 0, 0, 0, 0, 0, 0, 160, 104, 62 }, { "Box", "PlankL", 0.08, 0.2, 1.3, -1.56, 0.1, 0, 0, 0, 0, 0, 0, 0, 160, 104, 62 }, { "Box", "PlankR", 0.08, 0.2, 1.3, 1.56, 0.1, 0, 0, 0, 0, 0, 0, 0, 160, 104, 62 }, { "Box", "PlankF", 3.2, 0.2, 0.08, 0, 0.31, -0.61, 0, 0, 0, 0, 0, 0, 138, 88, 52 }, { "Box", "PlankB", 3.2, 0.2, 0.08, 0, 0.31, 0.61, 0, 0, 0, 0, 0, 0, 138, 88, 52 }, { "Box", "PlankL", 0.08, 0.2, 1.3, -1.56, 0.31, 0, 0, 0, 0, 0, 0, 0, 138, 88, 52 }, { "Box", "PlankR", 0.08, 0.2, 1.3, 1.56, 0.31, 0, 0, 0, 0, 0, 0, 0, 138, 88, 52 }, { "Box", "PlankF", 3.2, 0.2, 0.08, 0, 0.52, -0.61, 0, 0, 0, 0, 0, 0, 160, 104, 62 }, { "Box", "PlankB", 3.2, 0.2, 0.08, 0, 0.52, 0.61, 0, 0, 0, 0, 0, 0, 160, 104, 62 }, { "Box", "PlankL", 0.08, 0.2, 1.3, -1.56, 0.52, 0, 0, 0, 0, 0, 0, 0, 160, 104, 62 }, { "Box", "PlankR", 0.08, 0.2, 1.3, 1.56, 0.52, 0, 0, 0, 0, 0, 0, 0, 160, 104, 62 }, { "Box", "Post", 0.2, 0.75, 0.2, -1.6, 0.375, -0.65, 0, 0, 0, 0, 0, 0, 92, 58, 36 }, { "Box", "Post", 0.2, 0.75, 0.2, 1.6, 0.375, -0.65, 0, 0, 0, 0, 0, 0, 92, 58, 36 }, { "Box", "Post", 0.2, 0.75, 0.2, -1.6, 0.375, 0.65, 0, 0, 0, 0, 0, 0, 92, 58, 36 }, { "Box", "Post", 0.2, 0.75, 0.2, 1.6, 0.375, 0.65, 0, 0, 0, 0, 0, 0, 92, 58, 36 }, { "Box", "RimF", 3.2, 0.07, 0.14, 0, 0.655, -0.62, 0, 0, 0, 0, 0, 0, 92, 58, 36 }, { "Box", "RimB", 3.2, 0.07, 0.14, 0, 0.655, 0.62, 0, 0, 0, 0, 0, 0, 92, 58, 36 }, { "Box", "Strap", 0.12, 0.55, 0.05, -0.55, 0.325, -0.655, 0, 0, 0, 0, 0, 0, 62, 62, 68 }, { "Box", "Strap", 0.12, 0.55, 0.05, 0.55, 0.325, -0.655, 0, 0, 0, 0, 0, 0, 62, 62, 68 }, { "Box", "Soil", 3.04, 0.5, 1.14, 0, 0.35, 0, 0, 0, 0, 0, 0, 0, 74, 52, 36 }, { "Flowers", "Stem_0", 0.06, 0.55, 0.06, -1.3, 0.875, 0.28, 0, 0, 0, 0, 0, 0, 56, 110, 48 }, { "Flowers", "LeafA_0", 0.2, 0.07, 0.08, -1.2, 0.883, 0.28, -1.3, 0.848, 0.28, 0, 0, 0.524, 76, 140, 62 }, { "Flowers", "LeafB_0", 0.18, 0.07, 0.08, -1.39, 1.003, 0.28, -1.3, 0.968, 0.28, 0, 0, -0.524, 76, 140, 62 }, { "Flowers", "Bud_0", 0.12, 0.12, 0.12, -1.3, 1.21, 0.28, 0, 0, 0, 0, 0, 0, 242, 202, 76 }, { "Flowers", "Petal_0", 0.13, 0.11, 0.13, -1.19, 1.195, 0.28, 0, 0, 0, 0, 0, 0, 204, 64, 60 }, { "Flowers", "Petal_0", 0.13, 0.11, 0.13, -1.41, 1.195, 0.28, 0, 0, 0, 0, 0, 0, 204, 64, 60 }, { "Flowers", "Petal_0", 0.13, 0.11, 0.13, -1.3, 1.195, 0.39, 0, 0, 0, 0, 0, 0, 204, 64, 60 }, { "Flowers", "Petal_0", 0.13, 0.11, 0.13, -1.3, 1.195, 0.17, 0, 0, 0, 0, 0, 0, 204, 64, 60 }, { "Flowers", "Stem_1", 0.06, 0.73, 0.06, -0.87, 0.965, 0.28, 0, 0, 0, 0, 0, 0, 56, 110, 48 }, { "Flowers", "LeafA_1", 0.2, 0.07, 0.08, -0.77, 0.964, 0.28, -0.87, 0.929, 0.28, 0, 0, 0.524, 76, 140, 62 }, { "Flowers", "LeafB_1", 0.18, 0.07, 0.08, -0.96, 1.084, 0.28, -0.87, 1.049, 0.28, 0, 0, -0.524, 76, 140, 62 }, { "Flowers", "Bud_1", 0.12, 0.12, 0.12, -0.87, 1.39, 0.28, 0, 0, 0, 0, 0, 0, 236, 136, 52 }, { "Flowers", "Petal_1", 0.13, 0.11, 0.13, -0.76, 1.375, 0.28, 0, 0, 0, 0, 0, 0, 242, 202, 76 }, { "Flowers", "Petal_1", 0.13, 0.11, 0.13, -0.98, 1.375, 0.28, 0, 0, 0, 0, 0, 0, 242, 202, 76 }, { "Flowers", "Petal_1", 0.13, 0.11, 0.13, -0.87, 1.375, 0.39, 0, 0, 0, 0, 0, 0, 242, 202, 76 }, { "Flowers", "Petal_1", 0.13, 0.11, 0.13, -0.87, 1.375, 0.17, 0, 0, 0, 0, 0, 0, 242, 202, 76 }, { "Flowers", "Stem_2", 0.06, 0.91, 0.06, -0.44, 1.055, 0.28, 0, 0, 0, 0, 0, 0, 56, 110, 48 }, { "Flowers", "LeafA_2", 0.2, 0.07, 0.08, -0.34, 1.045, 0.28, -0.44, 1.01, 0.28, 0, 0, 0.524, 76, 140, 62 }, { "Flowers", "LeafB_2", 0.18, 0.07, 0.08, -0.53, 1.164, 0.28, -0.44, 1.13, 0.28, 0, 0, -0.524, 76, 140, 62 }, { "Flowers", "Bud_2", 0.12, 0.12, 0.12, -0.44, 1.57, 0.28, 0, 0, 0, 0, 0, 0, 242, 202, 76 }, { "Flowers", "Petal_2", 0.13, 0.11, 0.13, -0.33, 1.555, 0.28, 0, 0, 0, 0, 0, 0, 172, 108, 210 }, { "Flowers", "Petal_2", 0.13, 0.11, 0.13, -0.55, 1.555, 0.28, 0, 0, 0, 0, 0, 0, 172, 108, 210 }, { "Flowers", "Petal_2", 0.13, 0.11, 0.13, -0.44, 1.555, 0.39, 0, 0, 0, 0, 0, 0, 172, 108, 210 }, { "Flowers", "Petal_2", 0.13, 0.11, 0.13, -0.44, 1.555, 0.17, 0, 0, 0, 0, 0, 0, 172, 108, 210 }, { "Flowers", "Stem_3", 0.06, 0.64, 0.06, -0.01, 0.92, 0.28, 0, 0, 0, 0, 0, 0, 56, 110, 48 }, { "Flowers", "LeafA_3", 0.2, 0.07, 0.08, 0.09, 0.923, 0.28, -0.01, 0.888, 0.28, 0, 0, 0.524, 76, 140, 62 }, { "Flowers", "LeafB_3", 0.18, 0.07, 0.08, -0.1, 1.043, 0.28, -0.01, 1.008, 0.28, 0, 0, -0.524, 76, 140, 62 }, { "Flowers", "Bud_3", 0.12, 0.12, 0.12, -0.01, 1.3, 0.28, 0, 0, 0, 0, 0, 0, 242, 202, 76 }, { "Flowers", "Petal_3", 0.13, 0.11, 0.13, 0.1, 1.285, 0.28, 0, 0, 0, 0, 0, 0, 244, 240, 230 }, { "Flowers", "Petal_3", 0.13, 0.11, 0.13, -0.12, 1.285, 0.28, 0, 0, 0, 0, 0, 0, 244, 240, 230 }, { "Flowers", "Petal_3", 0.13, 0.11, 0.13, -0.01, 1.285, 0.39, 0, 0, 0, 0, 0, 0, 244, 240, 230 }, { "Flowers", "Petal_3", 0.13, 0.11, 0.13, -0.01, 1.285, 0.17, 0, 0, 0, 0, 0, 0, 244, 240, 230 }, { "Flowers", "Stem_4", 0.06, 0.82, 0.06, 0.42, 1.01, 0.28, 0, 0, 0, 0, 0, 0, 56, 110, 48 }, { "Flowers", "LeafA_4", 0.2, 0.07, 0.08, 0.52, 1.004, 0.28, 0.42, 0.969, 0.28, 0, 0, 0.524, 76, 140, 62 }, { "Flowers", "LeafB_4", 0.18, 0.07, 0.08, 0.33, 1.124, 0.28, 0.42, 1.089, 0.28, 0, 0, -0.524, 76, 140, 62 }, { "Flowers", "Bud_4", 0.12, 0.12, 0.12, 0.42, 1.48, 0.28, 0, 0, 0, 0, 0, 0, 242, 202, 76 }, { "Flowers", "Petal_4", 0.13, 0.11, 0.13, 0.53, 1.465, 0.28, 0, 0, 0, 0, 0, 0, 86, 136, 206 }, { "Flowers", "Petal_4", 0.13, 0.11, 0.13, 0.31, 1.465, 0.28, 0, 0, 0, 0, 0, 0, 86, 136, 206 }, { "Flowers", "Petal_4", 0.13, 0.11, 0.13, 0.42, 1.465, 0.39, 0, 0, 0, 0, 0, 0, 86, 136, 206 }, { "Flowers", "Petal_4", 0.13, 0.11, 0.13, 0.42, 1.465, 0.17, 0, 0, 0, 0, 0, 0, 86, 136, 206 }, { "Flowers", "Stem_5", 0.06, 0.55, 0.06, 0.85, 0.875, 0.28, 0, 0, 0, 0, 0, 0, 56, 110, 48 }, { "Flowers", "LeafA_5", 0.2, 0.07, 0.08, 0.95, 0.883, 0.28, 0.85, 0.848, 0.28, 0, 0, 0.524, 76, 140, 62 }, { "Flowers", "LeafB_5", 0.18, 0.07, 0.08, 0.76, 1.003, 0.28, 0.85, 0.968, 0.28, 0, 0, -0.524, 76, 140, 62 }, { "Flowers", "Bud_5", 0.12, 0.12, 0.12, 0.85, 1.21, 0.28, 0, 0, 0, 0, 0, 0, 242, 202, 76 }, { "Flowers", "Petal_5", 0.13, 0.11, 0.13, 0.96, 1.195, 0.28, 0, 0, 0, 0, 0, 0, 204, 64, 60 }, { "Flowers", "Petal_5", 0.13, 0.11, 0.13, 0.74, 1.195, 0.28, 0, 0, 0, 0, 0, 0, 204, 64, 60 }, { "Flowers", "Petal_5", 0.13, 0.11, 0.13, 0.85, 1.195, 0.39, 0, 0, 0, 0, 0, 0, 204, 64, 60 }, { "Flowers", "Petal_5", 0.13, 0.11, 0.13, 0.85, 1.195, 0.17, 0, 0, 0, 0, 0, 0, 204, 64, 60 }, { "Flowers", "Stem_6", 0.06, 0.73, 0.06, 1.28, 0.965, 0.28, 0, 0, 0, 0, 0, 0, 56, 110, 48 }, { "Flowers", "LeafA_6", 0.2, 0.07, 0.08, 1.38, 0.964, 0.28, 1.28, 0.929, 0.28, 0, 0, 0.524, 76, 140, 62 }, { "Flowers", "LeafB_6", 0.18, 0.07, 0.08, 1.19, 1.084, 0.28, 1.28, 1.049, 0.28, 0, 0, -0.524, 76, 140, 62 }, { "Flowers", "Bud_6", 0.12, 0.12, 0.12, 1.28, 1.39, 0.28, 0, 0, 0, 0, 0, 0, 236, 136, 52 }, { "Flowers", "Petal_6", 0.13, 0.11, 0.13, 1.39, 1.375, 0.28, 0, 0, 0, 0, 0, 0, 242, 202, 76 }, { "Flowers", "Petal_6", 0.13, 0.11, 0.13, 1.17, 1.375, 0.28, 0, 0, 0, 0, 0, 0, 242, 202, 76 }, { "Flowers", "Petal_6", 0.13, 0.11, 0.13, 1.28, 1.375, 0.39, 0, 0, 0, 0, 0, 0, 242, 202, 76 }, { "Flowers", "Petal_6", 0.13, 0.11, 0.13, 1.28, 1.375, 0.17, 0, 0, 0, 0, 0, 0, 242, 202, 76 }, { "Flowers", "Stem_7", 0.06, 0.7, 0.06, -1.1, 0.95, -0.25, 0, 0, 0, 0, 0, 0, 56, 110, 48 }, { "Flowers", "LeafA_7", 0.2, 0.07, 0.08, -1, 0.95, -0.25, -1.1, 0.915, -0.25, 0, 0, 0.524, 76, 140, 62 }, { "Flowers", "LeafB_7", 0.18, 0.07, 0.08, -1.19, 1.07, -0.25, -1.1, 1.035, -0.25, 0, 0, -0.524, 76, 140, 62 }, { "Flowers", "Bud_7", 0.12, 0.12, 0.12, -1.1, 1.36, -0.25, 0, 0, 0, 0, 0, 0, 242, 202, 76 }, { "Flowers", "Petal_7", 0.13, 0.11, 0.13, -0.99, 1.345, -0.25, 0, 0, 0, 0, 0, 0, 172, 108, 210 }, { "Flowers", "Petal_7", 0.13, 0.11, 0.13, -1.21, 1.345, -0.25, 0, 0, 0, 0, 0, 0, 172, 108, 210 }, { "Flowers", "Petal_7", 0.13, 0.11, 0.13, -1.1, 1.345, -0.14, 0, 0, 0, 0, 0, 0, 172, 108, 210 }, { "Flowers", "Petal_7", 0.13, 0.11, 0.13, -1.1, 1.345, -0.36, 0, 0, 0, 0, 0, 0, 172, 108, 210 }, { "Flowers", "Stem_8", 0.06, 0.43, 0.06, -0.67, 0.815, -0.25, 0, 0, 0, 0, 0, 0, 56, 110, 48 }, { "Flowers", "LeafA_8", 0.2, 0.07, 0.08, -0.57, 0.829, -0.25, -0.67, 0.794, -0.25, 0, 0, 0.524, 76, 140, 62 }, { "Flowers", "LeafB_8", 0.18, 0.07, 0.08, -0.76, 0.949, -0.25, -0.67, 0.914, -0.25, 0, 0, -0.524, 76, 140, 62 }, { "Flowers", "Bud_8", 0.12, 0.12, 0.12, -0.67, 1.09, -0.25, 0, 0, 0, 0, 0, 0, 242, 202, 76 }, { "Flowers", "Petal_8", 0.13, 0.11, 0.13, -0.56, 1.075, -0.25, 0, 0, 0, 0, 0, 0, 244, 240, 230 }, { "Flowers", "Petal_8", 0.13, 0.11, 0.13, -0.78, 1.075, -0.25, 0, 0, 0, 0, 0, 0, 244, 240, 230 }, { "Flowers", "Petal_8", 0.13, 0.11, 0.13, -0.67, 1.075, -0.14, 0, 0, 0, 0, 0, 0, 244, 240, 230 }, { "Flowers", "Petal_8", 0.13, 0.11, 0.13, -0.67, 1.075, -0.36, 0, 0, 0, 0, 0, 0, 244, 240, 230 }, { "Flowers", "Stem_9", 0.06, 0.61, 0.06, -0.24, 0.905, -0.25, 0, 0, 0, 0, 0, 0, 56, 110, 48 }, { "Flowers", "LeafA_9", 0.2, 0.07, 0.08, -0.14, 0.91, -0.25, -0.24, 0.875, -0.25, 0, 0, 0.524, 76, 140, 62 }, { "Flowers", "LeafB_9", 0.18, 0.07, 0.08, -0.33, 1.03, -0.25, -0.24, 0.995, -0.25, 0, 0, -0.524, 76, 140, 62 }, { "Flowers", "Bud_9", 0.12, 0.12, 0.12, -0.24, 1.27, -0.25, 0, 0, 0, 0, 0, 0, 242, 202, 76 }, { "Flowers", "Petal_9", 0.13, 0.11, 0.13, -0.13, 1.255, -0.25, 0, 0, 0, 0, 0, 0, 86, 136, 206 }, { "Flowers", "Petal_9", 0.13, 0.11, 0.13, -0.35, 1.255, -0.25, 0, 0, 0, 0, 0, 0, 86, 136, 206 }, { "Flowers", "Petal_9", 0.13, 0.11, 0.13, -0.24, 1.255, -0.14, 0, 0, 0, 0, 0, 0, 86, 136, 206 }, { "Flowers", "Petal_9", 0.13, 0.11, 0.13, -0.24, 1.255, -0.36, 0, 0, 0, 0, 0, 0, 86, 136, 206 }, { "Flowers", "Stem_10", 0.06, 0.79, 0.06, 0.19, 0.995, -0.25, 0, 0, 0, 0, 0, 0, 56, 110, 48 }, { "Flowers", "LeafA_10", 0.2, 0.07, 0.08, 0.29, 0.991, -0.25, 0.19, 0.956, -0.25, 0, 0, 0.524, 76, 140, 62 }, { "Flowers", "LeafB_10", 0.18, 0.07, 0.08, 0.1, 1.111, -0.25, 0.19, 1.076, -0.25, 0, 0, -0.524, 76, 140, 62 }, { "Flowers", "Bud_10", 0.12, 0.12, 0.12, 0.19, 1.45, -0.25, 0, 0, 0, 0, 0, 0, 242, 202, 76 }, { "Flowers", "Petal_10", 0.13, 0.11, 0.13, 0.3, 1.435, -0.25, 0, 0, 0, 0, 0, 0, 204, 64, 60 }, { "Flowers", "Petal_10", 0.13, 0.11, 0.13, 0.08, 1.435, -0.25, 0, 0, 0, 0, 0, 0, 204, 64, 60 }, { "Flowers", "Petal_10", 0.13, 0.11, 0.13, 0.19, 1.435, -0.14, 0, 0, 0, 0, 0, 0, 204, 64, 60 }, { "Flowers", "Petal_10", 0.13, 0.11, 0.13, 0.19, 1.435, -0.36, 0, 0, 0, 0, 0, 0, 204, 64, 60 }, { "Flowers", "Stem_11", 0.06, 0.52, 0.06, 0.62, 0.86, -0.25, 0, 0, 0, 0, 0, 0, 56, 110, 48 }, { "Flowers", "LeafA_11", 0.2, 0.07, 0.08, 0.72, 0.869, -0.25, 0.62, 0.834, -0.25, 0, 0, 0.524, 76, 140, 62 }, { "Flowers", "LeafB_11", 0.18, 0.07, 0.08, 0.53, 0.989, -0.25, 0.62, 0.954, -0.25, 0, 0, -0.524, 76, 140, 62 }, { "Flowers", "Bud_11", 0.12, 0.12, 0.12, 0.62, 1.18, -0.25, 0, 0, 0, 0, 0, 0, 236, 136, 52 }, { "Flowers", "Petal_11", 0.13, 0.11, 0.13, 0.73, 1.165, -0.25, 0, 0, 0, 0, 0, 0, 242, 202, 76 }, { "Flowers", "Petal_11", 0.13, 0.11, 0.13, 0.51, 1.165, -0.25, 0, 0, 0, 0, 0, 0, 242, 202, 76 }, { "Flowers", "Petal_11", 0.13, 0.11, 0.13, 0.62, 1.165, -0.14, 0, 0, 0, 0, 0, 0, 242, 202, 76 }, { "Flowers", "Petal_11", 0.13, 0.11, 0.13, 0.62, 1.165, -0.36, 0, 0, 0, 0, 0, 0, 242, 202, 76 }, { "Flowers", "Stem_12", 0.06, 0.7, 0.06, 1.05, 0.95, -0.25, 0, 0, 0, 0, 0, 0, 56, 110, 48 }, { "Flowers", "LeafA_12", 0.2, 0.07, 0.08, 1.15, 0.95, -0.25, 1.05, 0.915, -0.25, 0, 0, 0.524, 76, 140, 62 }, { "Flowers", "LeafB_12", 0.18, 0.07, 0.08, 0.96, 1.07, -0.25, 1.05, 1.035, -0.25, 0, 0, -0.524, 76, 140, 62 }, { "Flowers", "Bud_12", 0.12, 0.12, 0.12, 1.05, 1.36, -0.25, 0, 0, 0, 0, 0, 0, 242, 202, 76 }, { "Flowers", "Petal_12", 0.13, 0.11, 0.13, 1.16, 1.345, -0.25, 0, 0, 0, 0, 0, 0, 172, 108, 210 }, { "Flowers", "Petal_12", 0.13, 0.11, 0.13, 0.94, 1.345, -0.25, 0, 0, 0, 0, 0, 0, 172, 108, 210 }, { "Flowers", "Petal_12", 0.13, 0.11, 0.13, 1.05, 1.345, -0.14, 0, 0, 0, 0, 0, 0, 172, 108, 210 }, { "Flowers", "Petal_12", 0.13, 0.11, 0.13, 1.05, 1.345, -0.36, 0, 0, 0, 0, 0, 0, 172, 108, 210 }, { "Flowers", "Bush_0", 0.25, 0.22, 0.18, -1.225, 0.71, -0.41, 0, 0, 0, 0, 0, 0, 76, 140, 62 }, { "Flowers", "Bush_1", 0.25, 0.22, 0.18, -0.705, 0.71, -0.41, 0, 0, 0, 0, 0, 0, 56, 110, 48 }, { "Flowers", "Bush_2", 0.25, 0.22, 0.18, -0.185, 0.71, -0.41, 0, 0, 0, 0, 0, 0, 76, 140, 62 }, { "Flowers", "Bush_3", 0.25, 0.22, 0.18, 0.335, 0.71, -0.41, 0, 0, 0, 0, 0, 0, 56, 110, 48 }, { "Flowers", "Bush_4", 0.25, 0.22, 0.18, 0.855, 0.71, -0.41, 0, 0, 0, 0, 0, 0, 76, 140, 62 }, { "Flowers", "Bush_5", 0.25, 0.22, 0.18, 1.375, 0.71, -0.41, 0, 0, 0, 0, 0, 0, 56, 110, 48 }, } return function(parent) local model = Instance.new("Model") model.Name = "decor_flowerbed" local base = Instance.new("Part") base.Name = "Base" base.Size = Vector3.new(1, 0.1, 1) base.CFrame = CFrame.new(0, 0.05, 0) base.Transparency = 1 base.Anchored = true base.CanCollide = false base.CanQuery = false base.CanTouch = false base.Parent = model model.PrimaryPart = base local groups = {} local function sub(name, parentModel) local key = (parentModel and parentModel.Name .. "/" or "") .. name if not groups[key] then local g = Instance.new("Model") g.Name = name g.Parent = parentModel or model groups[key] = g end return groups[key] end for _, c in ipairs(CUBES) do local g = sub(c[1]) if c[2]:find("Fish") or c[1]:find("Fish") then g = sub("Fish", g) end local rot = CFrame.Angles(0, 0, c[14]) * CFrame.Angles(0, c[13], 0) * CFrame.Angles(c[12], 0, 0) local origin = Vector3.new(c[9], c[10], c[11]) local center = Vector3.new(c[6], c[7], c[8]) local p = Instance.new("Part") p.Name = c[2] p.Anchored = true p.Size = Vector3.new(c[3], c[4], c[5]) p.CFrame = CFrame.new(origin) * rot * CFrame.new(center - origin) p.Color = Color3.fromRGB(c[15], c[16], c[17]) p.Material = c[2]:find("Glow") and Enum.Material.Neon or Enum.Material.SmoothPlastic p.TopSurface, p.BottomSurface = Enum.SurfaceType.Smooth, Enum.SurfaceType.Smooth -- мелкие и висящие детали не мешают ходить p.CanCollide = math.min(p.Size.X, p.Size.Y, p.Size.Z) >= 0.3 and math.max(p.Size.X, p.Size.Y, p.Size.Z) >= 1 p.CastShadow = p.Size.Magnitude > 0.6 p.Parent = g end model.Parent = parent return model end