-- lobby_bench_flowers: модель из Blockbench (lobby_bench_flowers.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 = { { "Frame", "LegF_L", 0.34, 0.15, 0.34, -2.75, 0.075, -0.75, 0, 0, 0, 0, 0, 0, 58, 58, 64 }, { "Frame", "LegF_L", 0.3, 0.3, 0.3, -2.75, 0.3, -0.75, 0, 0, 0, 0, 0, 0, 98, 60, 36 }, { "Frame", "LegF_L", 0.38, 0.15, 0.38, -2.75, 0.525, -0.75, 0, 0, 0, 0, 0, 0, 72, 44, 28 }, { "Frame", "LegF_L", 0.26, 0.4, 0.26, -2.75, 0.8, -0.75, 0, 0, 0, 0, 0, 0, 98, 60, 36 }, { "Frame", "LegF_L", 0.34, 0.12, 0.34, -2.75, 1.06, -0.75, 0, 0, 0, 0, 0, 0, 72, 44, 28 }, { "Frame", "LegF_L", 0.3, 0.18, 0.3, -2.75, 1.21, -0.75, 0, 0, 0, 0, 0, 0, 98, 60, 36 }, { "Frame", "LegB_L", 0.34, 0.15, 0.34, -2.75, 0.075, 0.55, 0, 0, 0, 0, 0, 0, 58, 58, 64 }, { "Frame", "LegB_L", 0.3, 0.3, 0.3, -2.75, 0.3, 0.55, 0, 0, 0, 0, 0, 0, 98, 60, 36 }, { "Frame", "LegB_L", 0.38, 0.15, 0.38, -2.75, 0.525, 0.55, 0, 0, 0, 0, 0, 0, 72, 44, 28 }, { "Frame", "LegB_L", 0.26, 0.4, 0.26, -2.75, 0.8, 0.55, 0, 0, 0, 0, 0, 0, 98, 60, 36 }, { "Frame", "LegB_L", 0.34, 0.12, 0.34, -2.75, 1.06, 0.55, 0, 0, 0, 0, 0, 0, 72, 44, 28 }, { "Frame", "LegB_L", 0.3, 0.18, 0.3, -2.75, 1.21, 0.55, 0, 0, 0, 0, 0, 0, 98, 60, 36 }, { "Frame", "BackPost_L", 0.28, 2.05, 0.28, -2.75, 2.325, 0.55, -2.75, 1.3, 0.55, -0.175, 0, 0, 98, 60, 36 }, { "Frame", "BackPostCap_L", 0.36, 0.15, 0.36, -2.75, 3.425, 0.55, -2.75, 1.3, 0.55, -0.175, 0, 0, 206, 162, 70 }, { "Frame", "BackPostKnob_L", 0.2, 0.15, 0.2, -2.75, 3.575, 0.55, -2.75, 1.3, 0.55, -0.175, 0, 0, 160, 120, 46 }, { "Frame", "SideRail_L", 0.2, 0.23, 1.3, -2.75, 1.165, -0.1, 0, 0, 0, 0, 0, 0, 144, 92, 52 }, { "Frame", "Stretcher_L", 0.16, 0.12, 1.3, -2.75, 0.36, -0.1, 0, 0, 0, 0, 0, 0, 72, 44, 28 }, { "Frame", "ArmPost_L", 0.2, 0.75, 0.2, -2.75, 1.875, -0.65, 0, 0, 0, 0, 0, 0, 98, 60, 36 }, { "Frame", "Arm_L", 0.32, 0.15, 1.45, -2.75, 2.325, -0.225, 0, 0, 0, 0, 0, 0, 164, 108, 62 }, { "Frame", "ArmScroll_L", 0.32, 0.32, 0.12, -2.75, 2.24, -0.94, 0, 0, 0, 0, 0, 0, 144, 92, 52 }, { "Frame", "ArmPlate_L", 0.34, 0.09, 0.08, -2.75, 2.325, -0.94, 0, 0, 0, 0, 0, 0, 206, 162, 70 }, { "Frame", "SideStrap_L", 0.05, 0.3, 1.1, -2.88, 1.15, -0.1, 0, 0, 0, 0, 0, 0, 58, 58, 64 }, { "Frame", "SideRivet_L", 0.05, 0.08, 0.08, -2.915, 1.14, -0.5, 0, 0, 0, 0, 0, 0, 206, 162, 70 }, { "Frame", "SideRivet_L", 0.05, 0.08, 0.08, -2.915, 1.14, -0.05, 0, 0, 0, 0, 0, 0, 206, 162, 70 }, { "Frame", "SideRivet_L", 0.05, 0.08, 0.08, -2.915, 1.14, 0.3, 0, 0, 0, 0, 0, 0, 206, 162, 70 }, { "Frame", "LegF_R", 0.34, 0.15, 0.34, 2.75, 0.075, -0.75, 0, 0, 0, 0, 0, 0, 58, 58, 64 }, { "Frame", "LegF_R", 0.3, 0.3, 0.3, 2.75, 0.3, -0.75, 0, 0, 0, 0, 0, 0, 98, 60, 36 }, { "Frame", "LegF_R", 0.38, 0.15, 0.38, 2.75, 0.525, -0.75, 0, 0, 0, 0, 0, 0, 72, 44, 28 }, { "Frame", "LegF_R", 0.26, 0.4, 0.26, 2.75, 0.8, -0.75, 0, 0, 0, 0, 0, 0, 98, 60, 36 }, { "Frame", "LegF_R", 0.34, 0.12, 0.34, 2.75, 1.06, -0.75, 0, 0, 0, 0, 0, 0, 72, 44, 28 }, { "Frame", "LegF_R", 0.3, 0.18, 0.3, 2.75, 1.21, -0.75, 0, 0, 0, 0, 0, 0, 98, 60, 36 }, { "Frame", "LegB_R", 0.34, 0.15, 0.34, 2.75, 0.075, 0.55, 0, 0, 0, 0, 0, 0, 58, 58, 64 }, { "Frame", "LegB_R", 0.3, 0.3, 0.3, 2.75, 0.3, 0.55, 0, 0, 0, 0, 0, 0, 98, 60, 36 }, { "Frame", "LegB_R", 0.38, 0.15, 0.38, 2.75, 0.525, 0.55, 0, 0, 0, 0, 0, 0, 72, 44, 28 }, { "Frame", "LegB_R", 0.26, 0.4, 0.26, 2.75, 0.8, 0.55, 0, 0, 0, 0, 0, 0, 98, 60, 36 }, { "Frame", "LegB_R", 0.34, 0.12, 0.34, 2.75, 1.06, 0.55, 0, 0, 0, 0, 0, 0, 72, 44, 28 }, { "Frame", "LegB_R", 0.3, 0.18, 0.3, 2.75, 1.21, 0.55, 0, 0, 0, 0, 0, 0, 98, 60, 36 }, { "Frame", "BackPost_R", 0.28, 2.05, 0.28, 2.75, 2.325, 0.55, 2.75, 1.3, 0.55, -0.175, 0, 0, 98, 60, 36 }, { "Frame", "BackPostCap_R", 0.36, 0.15, 0.36, 2.75, 3.425, 0.55, 2.75, 1.3, 0.55, -0.175, 0, 0, 206, 162, 70 }, { "Frame", "BackPostKnob_R", 0.2, 0.15, 0.2, 2.75, 3.575, 0.55, 2.75, 1.3, 0.55, -0.175, 0, 0, 160, 120, 46 }, { "Frame", "SideRail_R", 0.2, 0.23, 1.3, 2.75, 1.165, -0.1, 0, 0, 0, 0, 0, 0, 144, 92, 52 }, { "Frame", "Stretcher_R", 0.16, 0.12, 1.3, 2.75, 0.36, -0.1, 0, 0, 0, 0, 0, 0, 72, 44, 28 }, { "Frame", "ArmPost_R", 0.2, 0.75, 0.2, 2.75, 1.875, -0.65, 0, 0, 0, 0, 0, 0, 98, 60, 36 }, { "Frame", "Arm_R", 0.32, 0.15, 1.45, 2.75, 2.325, -0.225, 0, 0, 0, 0, 0, 0, 164, 108, 62 }, { "Frame", "ArmScroll_R", 0.32, 0.32, 0.12, 2.75, 2.24, -0.94, 0, 0, 0, 0, 0, 0, 144, 92, 52 }, { "Frame", "ArmPlate_R", 0.34, 0.09, 0.08, 2.75, 2.325, -0.94, 0, 0, 0, 0, 0, 0, 206, 162, 70 }, { "Frame", "SideStrap_R", 0.05, 0.3, 1.1, 2.88, 1.15, -0.1, 0, 0, 0, 0, 0, 0, 58, 58, 64 }, { "Frame", "SideRivet_R", 0.05, 0.08, 0.08, 2.915, 1.14, -0.5, 0, 0, 0, 0, 0, 0, 206, 162, 70 }, { "Frame", "SideRivet_R", 0.05, 0.08, 0.08, 2.915, 1.14, -0.05, 0, 0, 0, 0, 0, 0, 206, 162, 70 }, { "Frame", "SideRivet_R", 0.05, 0.08, 0.08, 2.915, 1.14, 0.3, 0, 0, 0, 0, 0, 0, 206, 162, 70 }, { "Frame", "CenterStretcher", 5.5, 0.1, 0.1, 0, 0.37, -0.1, 0, 0, 0, 0, 0, 0, 72, 44, 28 }, { "Frame", "MidLeg", 0.24, 1.3, 0.2, 0, 0.65, -0.1, 0, 0, 0, 0, 0, 0, 98, 60, 36 }, { "Frame", "MidFoot", 0.32, 0.12, 0.28, 0, 0.06, -0.1, 0, 0, 0, 0, 0, 0, 58, 58, 64 }, { "Seat", "SeatPlank_0", 5.8, 0.2, 0.46, 0, 1.4, -0.75, 0, 0, 0, 0, 0, 0, 164, 108, 62 }, { "Seat", "SeatPlank_1", 5.8, 0.2, 0.46, 0, 1.4, -0.27, 0, 0, 0, 0, 0, 0, 144, 92, 52 }, { "Seat", "SeatPlank_2", 5.8, 0.2, 0.46, 0, 1.4, 0.21, 0, 0, 0, 0, 0, 0, 164, 108, 62 }, { "Seat", "SeatApron", 5.3, 0.25, 0.15, 0, 1.175, -0.875, 0, 0, 0, 0, 0, 0, 98, 60, 36 }, { "Seat", "SeatApronCarve", 3.6, 0.1, 0.13, 0, 1, -0.905, 0, 0, 0, 0, 0, 0, 72, 44, 28 }, { "Seat", "SeatStrap", 0.24, 0.05, 1.46, -1.9, 1.515, -0.27, 0, 0, 0, 0, 0, 0, 58, 58, 64 }, { "Seat", "SeatStrapFront", 0.24, 0.28, 0.05, -1.9, 1.39, -1.005, 0, 0, 0, 0, 0, 0, 58, 58, 64 }, { "Seat", "SeatRivet", 0.1, 0.05, 0.1, -1.9, 1.545, -0.75, 0, 0, 0, 0, 0, 0, 206, 162, 70 }, { "Seat", "SeatRivet", 0.1, 0.05, 0.1, -1.9, 1.545, -0.27, 0, 0, 0, 0, 0, 0, 206, 162, 70 }, { "Seat", "SeatRivet", 0.1, 0.05, 0.1, -1.9, 1.545, 0.21, 0, 0, 0, 0, 0, 0, 206, 162, 70 }, { "Seat", "SeatStrap", 0.24, 0.05, 1.46, 0, 1.515, -0.27, 0, 0, 0, 0, 0, 0, 58, 58, 64 }, { "Seat", "SeatStrapFront", 0.24, 0.28, 0.05, 0, 1.39, -1.005, 0, 0, 0, 0, 0, 0, 58, 58, 64 }, { "Seat", "SeatRivet", 0.1, 0.05, 0.1, 0, 1.545, -0.75, 0, 0, 0, 0, 0, 0, 206, 162, 70 }, { "Seat", "SeatRivet", 0.1, 0.05, 0.1, 0, 1.545, -0.27, 0, 0, 0, 0, 0, 0, 206, 162, 70 }, { "Seat", "SeatRivet", 0.1, 0.05, 0.1, 0, 1.545, 0.21, 0, 0, 0, 0, 0, 0, 206, 162, 70 }, { "Seat", "SeatStrap", 0.24, 0.05, 1.46, 1.9, 1.515, -0.27, 0, 0, 0, 0, 0, 0, 58, 58, 64 }, { "Seat", "SeatStrapFront", 0.24, 0.28, 0.05, 1.9, 1.39, -1.005, 0, 0, 0, 0, 0, 0, 58, 58, 64 }, { "Seat", "SeatRivet", 0.1, 0.05, 0.1, 1.9, 1.545, -0.75, 0, 0, 0, 0, 0, 0, 206, 162, 70 }, { "Seat", "SeatRivet", 0.1, 0.05, 0.1, 1.9, 1.545, -0.27, 0, 0, 0, 0, 0, 0, 206, 162, 70 }, { "Seat", "SeatRivet", 0.1, 0.05, 0.1, 1.9, 1.545, 0.21, 0, 0, 0, 0, 0, 0, 206, 162, 70 }, { "Back", "BackRail_Low", 5.3, 0.25, 0.16, 0, 1.975, 0.55, 0, 1.3, 0.55, -0.175, 0, 0, 144, 92, 52 }, { "Back", "BackRail_Top", 5.5, 0.3, 0.2, 0, 3.2, 0.55, 0, 1.3, 0.55, -0.175, 0, 0, 164, 108, 62 }, { "Back", "BackRail_TopCrest", 2.4, 0.15, 0.16, 0, 3.425, 0.55, 0, 1.3, 0.55, -0.175, 0, 0, 164, 108, 62 }, { "Back", "BackRail_TopCrest2", 1, 0.1, 0.12, 0, 3.55, 0.55, 0, 1.3, 0.55, -0.175, 0, 0, 164, 108, 62 }, { "Back", "BackSlat_0", 0.32, 0.95, 0.1, -2.3, 2.575, 0.55, 0, 1.3, 0.55, -0.175, 0, 0, 164, 108, 62 }, { "Back", "BackSlat_1", 0.32, 0.95, 0.1, -1.38, 2.575, 0.55, 0, 1.3, 0.55, -0.175, 0, 0, 144, 92, 52 }, { "Back", "BackSlat_3", 0.32, 0.95, 0.1, 0.46, 2.575, 0.55, 0, 1.3, 0.55, -0.175, 0, 0, 144, 92, 52 }, { "Back", "BackSlat_4", 0.32, 0.95, 0.1, 1.38, 2.575, 0.55, 0, 1.3, 0.55, -0.175, 0, 0, 164, 108, 62 }, { "Back", "BackSlat_5", 0.32, 0.95, 0.1, 2.3, 2.575, 0.55, 0, 1.3, 0.55, -0.175, 0, 0, 144, 92, 52 }, { "Back", "BackPanel", 1.5, 0.95, 0.14, 0, 2.575, 0.55, 0, 1.3, 0.55, -0.175, 0, 0, 98, 60, 36 }, { "Back", "Medallion", 0.64, 0.4, 0.06, 0, 2.58, 0.45, 0, 1.3, 0.55, -0.175, 0, 0, 206, 162, 70 }, { "Back", "MedallionR", 0.44, 0.44, 0.05, 0, 2.58, 0.42, 0, 2.58, 0.44, -0.175, 0, 0.785, 160, 120, 46 }, { "Back", "BackStrap", 0.2, 1.5, 0.05, -2.3, 2.6, 0.455, 0, 1.3, 0.55, -0.175, 0, 0, 58, 58, 64 }, { "Back", "BackStrap", 0.2, 1.5, 0.05, 2.3, 2.6, 0.455, 0, 1.3, 0.55, -0.175, 0, 0, 58, 58, 64 }, { "Planter", "Tub", 1.5, 1.2, 1.5, 4, 0.6, -0.15, 0, 0, 0, 0, 0, 0, 144, 92, 52 }, { "Planter", "TubLip", 1.7, 0.12, 1.7, 4, 1.26, -0.15, 0, 0, 0, 0, 0, 0, 98, 60, 36 }, { "Planter", "TubBand", 1.58, 0.14, 1.58, 4, 0.22, -0.15, 0, 0, 0, 0, 0, 0, 58, 58, 64 }, { "Planter", "TubBand", 1.58, 0.14, 1.58, 4, 0.92, -0.15, 0, 0, 0, 0, 0, 0, 58, 58, 64 }, { "Planter", "TubFoot", 0.24, 0.1, 0.24, 3.4, 0.05, -0.75, 0, 0, 0, 0, 0, 0, 58, 58, 64 }, { "Planter", "TubFoot", 0.24, 0.1, 0.24, 4.6, 0.05, -0.75, 0, 0, 0, 0, 0, 0, 58, 58, 64 }, { "Planter", "TubFoot", 0.24, 0.1, 0.24, 3.4, 0.05, 0.45, 0, 0, 0, 0, 0, 0, 58, 58, 64 }, { "Planter", "TubFoot", 0.24, 0.1, 0.24, 4.6, 0.05, 0.45, 0, 0, 0, 0, 0, 0, 58, 58, 64 }, { "Planter", "TubSoil", 1.36, 0.08, 1.36, 4, 1.24, -0.15, 0, 0, 0, 0, 0, 0, 70, 48, 32 }, { "Planter", "Bush_0", 1.2, 0.72, 1.2, 4, 1.64, -0.15, 0, 0, 0, 0, 0, 0, 74, 136, 62 }, { "Planter", "Bush_1", 0.76, 0.47, 0.76, 3.65, 1.515, -0.45, 0, 0, 0, 0, 0, 0, 56, 108, 48 }, { "Planter", "Bush_2", 0.8, 0.57, 0.8, 4.35, 1.565, 0.15, 0, 0, 0, 0, 0, 0, 74, 136, 62 }, { "Planter", "Bush_3", 0.64, 0.32, 0.64, 4.3, 1.44, -0.5, 0, 0, 0, 0, 0, 0, 56, 108, 48 }, { "Planter", "Bush_4", 0.66, 0.42, 0.66, 3.7, 1.49, 0.2, 0, 0, 0, 0, 0, 0, 74, 136, 62 }, { "Planter", "Stem_0", 0.06, 0.55, 0.06, 3.55, 1.975, -0.6, 0, 0, 0, 0, 0, 0, 56, 108, 48 }, { "Planter", "Flower_0", 0.28, 0.14, 0.28, 3.55, 2.32, -0.6, 0, 0, 0, 0, 0, 0, 214, 70, 72 }, { "Planter", "FlowerR_0", 0.28, 0.14, 0.28, 3.55, 2.32, -0.6, 3.55, 0, -0.6, 0, 0.785, 0, 214, 70, 72 }, { "Planter", "FlowerCore_0", 0.1, 0.05, 0.1, 3.55, 2.415, -0.6, 0, 0, 0, 0, 0, 0, 240, 204, 84 }, { "Planter", "Stem_1", 0.06, 0.7, 0.06, 4.1, 2.05, -0.7, 0, 0, 0, 0, 0, 0, 56, 108, 48 }, { "Planter", "Flower_1", 0.28, 0.14, 0.28, 4.1, 2.47, -0.7, 0, 0, 0, 0, 0, 0, 240, 204, 84 }, { "Planter", "FlowerR_1", 0.28, 0.14, 0.28, 4.1, 2.47, -0.7, 4.1, 0, -0.7, 0, 0.785, 0, 240, 204, 84 }, { "Planter", "FlowerCore_1", 0.1, 0.05, 0.1, 4.1, 2.565, -0.7, 0, 0, 0, 0, 0, 0, 214, 70, 72 }, { "Planter", "Stem_2", 0.06, 0.5, 0.06, 4.5, 1.95, -0.35, 0, 0, 0, 0, 0, 0, 56, 108, 48 }, { "Planter", "Flower_2", 0.28, 0.14, 0.28, 4.5, 2.27, -0.35, 0, 0, 0, 0, 0, 0, 196, 120, 214 }, { "Planter", "FlowerR_2", 0.28, 0.14, 0.28, 4.5, 2.27, -0.35, 4.5, 0, -0.35, 0, 0.785, 0, 196, 120, 214 }, { "Planter", "FlowerCore_2", 0.1, 0.05, 0.1, 4.5, 2.365, -0.35, 0, 0, 0, 0, 0, 0, 240, 204, 84 }, { "Planter", "Stem_3", 0.06, 0.8, 0.06, 3.8, 2.1, 0.05, 0, 0, 0, 0, 0, 0, 56, 108, 48 }, { "Planter", "Flower_3", 0.28, 0.14, 0.28, 3.8, 2.57, 0.05, 0, 0, 0, 0, 0, 0, 244, 240, 228 }, { "Planter", "FlowerR_3", 0.28, 0.14, 0.28, 3.8, 2.57, 0.05, 3.8, 0, 0.05, 0, 0.785, 0, 244, 240, 228 }, { "Planter", "FlowerCore_3", 0.1, 0.05, 0.1, 3.8, 2.665, 0.05, 0, 0, 0, 0, 0, 0, 240, 204, 84 }, { "Planter", "Stem_4", 0.06, 0.6, 0.06, 4.4, 2, 0.3, 0, 0, 0, 0, 0, 0, 56, 108, 48 }, { "Planter", "Flower_4", 0.28, 0.14, 0.28, 4.4, 2.37, 0.3, 0, 0, 0, 0, 0, 0, 214, 70, 72 }, { "Planter", "FlowerR_4", 0.28, 0.14, 0.28, 4.4, 2.37, 0.3, 4.4, 0, 0.3, 0, 0.785, 0, 214, 70, 72 }, { "Planter", "FlowerCore_4", 0.1, 0.05, 0.1, 4.4, 2.465, 0.3, 0, 0, 0, 0, 0, 0, 240, 204, 84 }, { "Planter", "Stem_5", 0.06, 0.4, 0.06, 3.45, 1.9, -0.05, 0, 0, 0, 0, 0, 0, 56, 108, 48 }, { "Planter", "Flower_5", 0.28, 0.14, 0.28, 3.45, 2.17, -0.05, 0, 0, 0, 0, 0, 0, 240, 204, 84 }, { "Planter", "FlowerR_5", 0.28, 0.14, 0.28, 3.45, 2.17, -0.05, 3.45, 0, -0.05, 0, 0.785, 0, 240, 204, 84 }, { "Planter", "FlowerCore_5", 0.1, 0.05, 0.1, 3.45, 2.265, -0.05, 0, 0, 0, 0, 0, 0, 214, 70, 72 }, { "Planter", "Stem_6", 0.06, 0.95, 0.06, 4.05, 2.175, -0.1, 0, 0, 0, 0, 0, 0, 56, 108, 48 }, { "Planter", "Flower_6", 0.28, 0.14, 0.28, 4.05, 2.72, -0.1, 0, 0, 0, 0, 0, 0, 196, 120, 214 }, { "Planter", "FlowerR_6", 0.28, 0.14, 0.28, 4.05, 2.72, -0.1, 4.05, 0, -0.1, 0, 0.785, 0, 196, 120, 214 }, { "Planter", "FlowerCore_6", 0.1, 0.05, 0.1, 4.05, 2.815, -0.1, 0, 0, 0, 0, 0, 0, 240, 204, 84 }, } return function(parent) local model = Instance.new("Model") model.Name = "lobby_bench_flowers" 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