Loading model...
by Stand Gaming · 6/23/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: Aerotrim |
| 3 | |
| 4 | local MS = game:GetService("MaterialService") |
| 5 | |
| 6 | local ok, roots = pcall(game.GetObjects, game, "rbxassetid://13386676607") |
| 7 | if not ok then return warn(roots) end |
| 8 | |
| 9 | local tmp = Instance.new("Folder") |
| 10 | for _, r in ipairs(roots) do r.Parent = tmp end |
| 11 | |
| 12 | for _, d in ipairs(tmp:GetDescendants()) do |
| 13 | if d:IsA("MaterialVariant") then |
| 14 | d.Parent = MS |
| 15 | end |
| 16 | end |
| 17 | tmp:Destroy() |
| 18 | |
| 19 | local model = Instance.new("Model") |
| 20 | model.Name = "Aerotrim" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Dark stone grey"] = "2022 Stud", |
| 25 | ["Light stone grey"] = "2022 Glue", |
| 26 | ["Medium stone grey"] = "2022 Inlet", |
| 27 | ["Really black"] = "2022 Universal", |
| 28 | ["Silver"] = "2022 Stud", |
| 29 | } |
| 30 | do |
| 31 | local p = Instance.new("Part") |
| 32 | p.Name = "BasePlatform" |
| 33 | p.Size = Vector3.new(32, 2, 20) |
| 34 | p.CFrame = CFrame.new(0, 1, 0) |
| 35 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 36 | p.Material = Enum.Material.Glacier |
| 37 | p.MaterialVariant = "2022 Inlet" |
| 38 | p.Anchored = true |
| 39 | p.Parent = model |
| 40 | end |
| 41 | do |
| 42 | local p = Instance.new("Part") |
| 43 | p.Name = "BaseTrim" |
| 44 | p.Size = Vector3.new(32.2, 1.8, 20.2) |
| 45 | p.CFrame = CFrame.new(0, 1, 0) |
| 46 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 47 | p.Material = Enum.Material.Glacier |
| 48 | p.MaterialVariant = "2022 Stud" |
| 49 | p.Anchored = true |
| 50 | p.Parent = model |
| 51 | end |
| 52 | do |
| 53 | local p = Instance.new("Part") |
| 54 | p.Shape = Enum.PartType.Cylinder |
| 55 | p.Name = "SupportLeftMain" |
| 56 | p.Size = Vector3.new(14, 1.5, 1.5) |
| 57 | p.CFrame = CFrame.new(-13, 9.04, 0) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(90)) |
| 58 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 59 | p.Material = Enum.Material.Glacier |
| 60 | p.MaterialVariant = "2022 Inlet" |
| 61 | p.Anchored = true |
| 62 | p.Parent = model |
| 63 | end |
| 64 | do |
| 65 | local p = Instance.new("Part") |
| 66 | p.Shape = Enum.PartType.Cylinder |
| 67 | p.Name = "SupportRightMain" |
| 68 | p.Size = Vector3.new(14, 1.5, 1.5) |
| 69 | p.CFrame = CFrame.new(13, 9.04, 0) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(90)) |
| 70 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 71 | p.Material = Enum.Material.Glacier |
| 72 | p.MaterialVariant = "2022 Inlet" |
| 73 | p.Anchored = true |
| 74 | p.Parent = model |
| 75 | end |
| 76 | do |
| 77 | local p = Instance.new("Part") |
| 78 | p.Shape = Enum.PartType.Cylinder |
| 79 | p.Name = "SupportLeftBraceF" |
| 80 | p.Size = Vector3.new(11.6619, 0.96, 0.96) |
| 81 | p.CFrame = CFrame.new(-13, 7, -3) * CFrame.Angles(math.rad(-59.0362), math.rad(90), math.rad(0)) |
| 82 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 83 | p.Material = Enum.Material.Glacier |
| 84 | p.MaterialVariant = "2022 Inlet" |
| 85 | p.Anchored = true |
| 86 | p.Parent = model |
| 87 | end |
| 88 | do |
| 89 | local p = Instance.new("Part") |
| 90 | p.Shape = Enum.PartType.Cylinder |
| 91 | p.Name = "SupportLeftBraceB" |
| 92 | p.Size = Vector3.new(11.6619, 1, 1) |
| 93 | p.CFrame = CFrame.new(-13, 7, 3) * CFrame.Angles(math.rad(59.0362), math.rad(-90), math.rad(0)) |
| 94 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 95 | p.Material = Enum.Material.Glacier |
| 96 | p.MaterialVariant = "2022 Inlet" |
| 97 | p.Anchored = true |
| 98 | p.Parent = model |
| 99 | end |
| 100 | do |
| 101 | local p = Instance.new("Part") |
| 102 | p.Shape = Enum.PartType.Cylinder |
| 103 | p.Name = "SupportRightBraceF" |
| 104 | p.Size = Vector3.new(11.6619, 0.96, 0.96) |
| 105 | p.CFrame = CFrame.new(13, 7, -3) * CFrame.Angles(math.rad(-59.0362), math.rad(90), math.rad(0)) |
| 106 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 107 | p.Material = Enum.Material.Glacier |
| 108 | p.MaterialVariant = "2022 Inlet" |
| 109 | p.Anchored = true |
| 110 | p.Parent = model |
| 111 | end |
| 112 | do |
| 113 | local p = Instance.new("Part") |
| 114 | p.Shape = Enum.PartType.Cylinder |
| 115 | p.Name = "SupportRightBraceB" |
| 116 | p.Size = Vector3.new(11.6619, 1, 1) |
| 117 | p.CFrame = CFrame.new(13, 7, 3) * CFrame.Angles(math.rad(59.0362), math.rad(-90), math.rad(0)) |
| 118 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 119 | p.Material = Enum.Material.Glacier |
| 120 | p.MaterialVariant = "2022 Inlet" |
| 121 | p.Anchored = true |
| 122 | p.Parent = model |
| 123 | end |
| 124 | do |
| 125 | local p = Instance.new("Part") |
| 126 | p.Shape = Enum.PartType.Cylinder |
| 127 | p.Name = "PivotLeft" |
| 128 | p.Size = Vector3.new(2, 2, 2) |
| 129 | p.CFrame = CFrame.new(-12.5, 16, 0) |
| 130 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 131 | p.Material = Enum.Material.Glacier |
| 132 | p.MaterialVariant = "2022 Stud" |
| 133 | p.Anchored = true |
| 134 | p.Parent = model |
| 135 | end |
| 136 | do |
| 137 | local p = Instance.new("Part") |
| 138 | p.Shape = Enum.PartType.Cylinder |
| 139 | p.Name = "PivotRight" |
| 140 | p.Size = Vector3.new(2, 2, 2) |
| 141 | p.CFrame = CFrame.new(12.5, 16, 0) |
| 142 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 143 | p.Material = Enum.Material.Glacier |
| 144 | p.MaterialVariant = "2022 Stud" |
| 145 | p.Anchored = true |
| 146 | p.Parent = model |
| 147 | end |
| 148 | do |
| 149 | local rightV = Vector3.new(1,0,0).Unit |
| 150 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 151 | local normalV = upV:Cross(rightV) |
| 152 | local pos = Vector3.new(0, 16.04, 0) |
| 153 | local cyl = Instance.new("Part") |
| 154 | cyl.Shape = Enum.PartType.Cylinder |
| 155 | cyl.Size = Vector3.new(1.2, 24, 24) |
| 156 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 157 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 158 | cyl.Material = Enum.Material.Glacier |
| 159 | cyl.MaterialVariant = "2022 Inlet" |
| 160 | cyl.Anchored = true; cyl.Parent = workspace |
| 161 | local cuts = {} |
| 162 | local hole = Instance.new("Part") |
| 163 | hole.Shape = Enum.PartType.Cylinder |
| 164 | hole.Size = Vector3.new(1.4, 21.6, 21.6) |
| 165 | hole.CFrame = cyl.CFrame |
| 166 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 167 | hole.Material = Enum.Material.Glacier |
| 168 | hole.MaterialVariant = "2022 Inlet" |
| 169 | hole.Anchored = true; hole.Parent = workspace |
| 170 | table.insert(cuts, hole) |
| 171 | local angBoxes = {} |
| 172 | do |
| 173 | local edgeDir = 1*rightV + 0*upV |
| 174 | local edgePerp = 0*rightV + 1*upV |
| 175 | local cut = Instance.new("Part") |
| 176 | cut.Size = Vector3.new(48, 1.4, 48) |
| 177 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 24 * edgePerp, edgeDir, normalV) |
| 178 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 179 | cut.Material = Enum.Material.Glacier |
| 180 | cut.MaterialVariant = "2022 Inlet" |
| 181 | cut.Anchored = true; cut.Parent = workspace |
| 182 | table.insert(angBoxes, cut) |
| 183 | end |
| 184 | do |
| 185 | local edgeDir = -1*rightV + 0*upV |
| 186 | local edgePerp = 0*rightV + -1*upV |
| 187 | local cut = Instance.new("Part") |
| 188 | cut.Size = Vector3.new(48, 1.4, 48) |
| 189 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 24 * edgePerp, edgeDir, normalV) |
| 190 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 191 | cut.Material = Enum.Material.Glacier |
| 192 | cut.MaterialVariant = "2022 Inlet" |
| 193 | cut.Anchored = true; cut.Parent = workspace |
| 194 | table.insert(angBoxes, cut) |
| 195 | end |
| 196 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 197 | if #cuts > 0 then |
| 198 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 199 | for _, c in ipairs(cuts) do c:Destroy() end |
| 200 | if ok and result then |
| 201 | cyl:Destroy() |
| 202 | result.Name = "OuterRingTop"; result.Anchored = true; result.Parent = model |
| 203 | else |
| 204 | cyl.Name = "OuterRingTop"; cyl.Parent = model |
| 205 | end |
| 206 | else |
| 207 | cyl.Name = "OuterRingTop"; cyl.Parent = model |
| 208 | end |
| 209 | end |
| 210 | do |
| 211 | local rightV = Vector3.new(1,0,0).Unit |
| 212 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 213 | local normalV = upV:Cross(rightV) |
| 214 | local pos = Vector3.new(0, 16, 0) |
| 215 | local cyl = Instance.new("Part") |
| 216 | cyl.Shape = Enum.PartType.Cylinder |
| 217 | cyl.Size = Vector3.new(1.2, 24, 24) |
| 218 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 219 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 220 | cyl.Material = Enum.Material.Glacier |
| 221 | cyl.MaterialVariant = "2022 Inlet" |
| 222 | cyl.Anchored = true; cyl.Parent = workspace |
| 223 | local cuts = {} |
| 224 | local hole = Instance.new("Part") |
| 225 | hole.Shape = Enum.PartType.Cylinder |
| 226 | hole.Size = Vector3.new(1.4, 21.6, 21.6) |
| 227 | hole.CFrame = cyl.CFrame |
| 228 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 229 | hole.Material = Enum.Material.Glacier |
| 230 | hole.MaterialVariant = "2022 Inlet" |
| 231 | hole.Anchored = true; hole.Parent = workspace |
| 232 | table.insert(cuts, hole) |
| 233 | local angBoxes = {} |
| 234 | do |
| 235 | local edgeDir = -1*rightV + 0*upV |
| 236 | local edgePerp = 0*rightV + -1*upV |
| 237 | local cut = Instance.new("Part") |
| 238 | cut.Size = Vector3.new(48, 1.4, 48) |
| 239 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 24 * edgePerp, edgeDir, normalV) |
| 240 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 241 | cut.Material = Enum.Material.Glacier |
| 242 | cut.MaterialVariant = "2022 Inlet" |
| 243 | cut.Anchored = true; cut.Parent = workspace |
| 244 | table.insert(angBoxes, cut) |
| 245 | end |
| 246 | do |
| 247 | local edgeDir = 1*rightV + 0*upV |
| 248 | local edgePerp = 0*rightV + 1*upV |
| 249 | local cut = Instance.new("Part") |
| 250 | cut.Size = Vector3.new(48, 1.4, 48) |
| 251 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 24 * edgePerp, edgeDir, normalV) |
| 252 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 253 | cut.Material = Enum.Material.Glacier |
| 254 | cut.MaterialVariant = "2022 Inlet" |
| 255 | cut.Anchored = true; cut.Parent = workspace |
| 256 | table.insert(angBoxes, cut) |
| 257 | end |
| 258 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 259 | if #cuts > 0 then |
| 260 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 261 | for _, c in ipairs(cuts) do c:Destroy() end |
| 262 | if ok and result then |
| 263 | cyl:Destroy() |
| 264 | result.Name = "OuterRingBot"; result.Anchored = true; result.Parent = model |
| 265 | else |
| 266 | cyl.Name = "OuterRingBot"; cyl.Parent = model |
| 267 | end |
| 268 | else |
| 269 | cyl.Name = "OuterRingBot"; cyl.Parent = model |
| 270 | end |
| 271 | end |
| 272 | do |
| 273 | local rightV = Vector3.new(0.707107,0,-0.707107).Unit |
| 274 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 275 | local normalV = upV:Cross(rightV) |
| 276 | local pos = Vector3.new(0, 16.04, 0) |
| 277 | local cyl = Instance.new("Part") |
| 278 | cyl.Shape = Enum.PartType.Cylinder |
| 279 | cyl.Size = Vector3.new(1.2, 20.8, 20.8) |
| 280 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 281 | cyl.BrickColor = BrickColor.new("Light stone grey") |
| 282 | cyl.Material = Enum.Material.Glacier |
| 283 | cyl.MaterialVariant = "2022 Glue" |
| 284 | cyl.Anchored = true; cyl.Parent = workspace |
| 285 | local cuts = {} |
| 286 | local hole = Instance.new("Part") |
| 287 | hole.Shape = Enum.PartType.Cylinder |
| 288 | hole.Size = Vector3.new(1.4, 18.4, 18.4) |
| 289 | hole.CFrame = cyl.CFrame |
| 290 | hole.BrickColor = BrickColor.new("Light stone grey") |
| 291 | hole.Material = Enum.Material.Glacier |
| 292 | hole.MaterialVariant = "2022 Glue" |
| 293 | hole.Anchored = true; hole.Parent = workspace |
| 294 | table.insert(cuts, hole) |
| 295 | local angBoxes = {} |
| 296 | do |
| 297 | local edgeDir = 1*rightV + 0*upV |
| 298 | local edgePerp = 0*rightV + 1*upV |
| 299 | local cut = Instance.new("Part") |
| 300 | cut.Size = Vector3.new(41.6, 1.4, 41.6) |
| 301 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 20.8 * edgePerp, edgeDir, normalV) |
| 302 | cut.BrickColor = BrickColor.new("Light stone grey") |
| 303 | cut.Material = Enum.Material.Glacier |
| 304 | cut.MaterialVariant = "2022 Glue" |
| 305 | cut.Anchored = true; cut.Parent = workspace |
| 306 | table.insert(angBoxes, cut) |
| 307 | end |
| 308 | do |
| 309 | local edgeDir = -1*rightV + 0*upV |
| 310 | local edgePerp = 0*rightV + -1*upV |
| 311 | local cut = Instance.new("Part") |
| 312 | cut.Size = Vector3.new(41.6, 1.4, 41.6) |
| 313 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 20.8 * edgePerp, edgeDir, normalV) |
| 314 | cut.BrickColor = BrickColor.new("Light stone grey") |
| 315 | cut.Material = Enum.Material.Glacier |
| 316 | cut.MaterialVariant = "2022 Glue" |
| 317 | cut.Anchored = true; cut.Parent = workspace |
| 318 | table.insert(angBoxes, cut) |
| 319 | end |
| 320 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 321 | if #cuts > 0 then |
| 322 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 323 | for _, c in ipairs(cuts) do c:Destroy() end |
| 324 | if ok and result then |
| 325 | cyl:Destroy() |
| 326 | result.Name = "MidRingTop"; result.Anchored = true; result.Parent = model |
| 327 | else |
| 328 | cyl.Name = "MidRingTop"; cyl.Parent = model |
| 329 | end |
| 330 | else |
| 331 | cyl.Name = "MidRingTop"; cyl.Parent = model |
| 332 | end |
| 333 | end |
| 334 | do |
| 335 | local rightV = Vector3.new(0.707107,0,-0.707107).Unit |
| 336 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 337 | local normalV = upV:Cross(rightV) |
| 338 | local pos = Vector3.new(0, 16, 0) |
| 339 | local cyl = Instance.new("Part") |
| 340 | cyl.Shape = Enum.PartType.Cylinder |
| 341 | cyl.Size = Vector3.new(1.2, 20.8, 20.8) |
| 342 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 343 | cyl.BrickColor = BrickColor.new("Light stone grey") |
| 344 | cyl.Material = Enum.Material.Glacier |
| 345 | cyl.MaterialVariant = "2022 Glue" |
| 346 | cyl.Anchored = true; cyl.Parent = workspace |
| 347 | local cuts = {} |
| 348 | local hole = Instance.new("Part") |
| 349 | hole.Shape = Enum.PartType.Cylinder |
| 350 | hole.Size = Vector3.new(1.4, 18.4, 18.4) |
| 351 | hole.CFrame = cyl.CFrame |
| 352 | hole.BrickColor = BrickColor.new("Light stone grey") |
| 353 | hole.Material = Enum.Material.Glacier |
| 354 | hole.MaterialVariant = "2022 Glue" |
| 355 | hole.Anchored = true; hole.Parent = workspace |
| 356 | table.insert(cuts, hole) |
| 357 | local angBoxes = {} |
| 358 | do |
| 359 | local edgeDir = -1*rightV + 0*upV |
| 360 | local edgePerp = 0*rightV + -1*upV |
| 361 | local cut = Instance.new("Part") |
| 362 | cut.Size = Vector3.new(41.6, 1.4, 41.6) |
| 363 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 20.8 * edgePerp, edgeDir, normalV) |
| 364 | cut.BrickColor = BrickColor.new("Light stone grey") |
| 365 | cut.Material = Enum.Material.Glacier |
| 366 | cut.MaterialVariant = "2022 Glue" |
| 367 | cut.Anchored = true; cut.Parent = workspace |
| 368 | table.insert(angBoxes, cut) |
| 369 | end |
| 370 | do |
| 371 | local edgeDir = 1*rightV + 0*upV |
| 372 | local edgePerp = 0*rightV + 1*upV |
| 373 | local cut = Instance.new("Part") |
| 374 | cut.Size = Vector3.new(41.6, 1.4, 41.6) |
| 375 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 20.8 * edgePerp, edgeDir, normalV) |
| 376 | cut.BrickColor = BrickColor.new("Light stone grey") |
| 377 | cut.Material = Enum.Material.Glacier |
| 378 | cut.MaterialVariant = "2022 Glue" |
| 379 | cut.Anchored = true; cut.Parent = workspace |
| 380 | table.insert(angBoxes, cut) |
| 381 | end |
| 382 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 383 | if #cuts > 0 then |
| 384 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 385 | for _, c in ipairs(cuts) do c:Destroy() end |
| 386 | if ok and result then |
| 387 | cyl:Destroy() |
| 388 | result.Name = "MidRingBot"; result.Anchored = true; result.Parent = model |
| 389 | else |
| 390 | cyl.Name = "MidRingBot"; cyl.Parent = model |
| 391 | end |
| 392 | else |
| 393 | cyl.Name = "MidRingBot"; cyl.Parent = model |
| 394 | end |
| 395 | end |
| 396 | do |
| 397 | local rightV = Vector3.new(0.707,0.707,0).Unit |
| 398 | local upV = (Vector3.new(-0.5,0.5,0.707) - Vector3.new(-0.5,0.5,0.707):Dot(rightV)*rightV).Unit |
| 399 | local normalV = upV:Cross(rightV) |
| 400 | local pos = Vector3.new(-0.000003, 16.000003, 0.056569) |
| 401 | local cyl = Instance.new("Part") |
| 402 | cyl.Shape = Enum.PartType.Cylinder |
| 403 | cyl.Size = Vector3.new(1.2, 17.6, 17.6) |
| 404 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 405 | cyl.BrickColor = BrickColor.new("Silver") |
| 406 | cyl.Material = Enum.Material.Glacier |
| 407 | cyl.MaterialVariant = "2022 Stud" |
| 408 | cyl.Anchored = true; cyl.Parent = workspace |
| 409 | local cuts = {} |
| 410 | local hole = Instance.new("Part") |
| 411 | hole.Shape = Enum.PartType.Cylinder |
| 412 | hole.Size = Vector3.new(1.4, 15.2, 15.2) |
| 413 | hole.CFrame = cyl.CFrame |
| 414 | hole.BrickColor = BrickColor.new("Silver") |
| 415 | hole.Material = Enum.Material.Glacier |
| 416 | hole.MaterialVariant = "2022 Stud" |
| 417 | hole.Anchored = true; hole.Parent = workspace |
| 418 | table.insert(cuts, hole) |
| 419 | local angBoxes = {} |
| 420 | do |
| 421 | local edgeDir = 1*rightV + 0*upV |
| 422 | local edgePerp = 0*rightV + 1*upV |
| 423 | local cut = Instance.new("Part") |
| 424 | cut.Size = Vector3.new(35.2, 1.4, 35.2) |
| 425 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 17.6 * edgePerp, edgeDir, normalV) |
| 426 | cut.BrickColor = BrickColor.new("Silver") |
| 427 | cut.Material = Enum.Material.Glacier |
| 428 | cut.MaterialVariant = "2022 Stud" |
| 429 | cut.Anchored = true; cut.Parent = workspace |
| 430 | table.insert(angBoxes, cut) |
| 431 | end |
| 432 | do |
| 433 | local edgeDir = -1*rightV + 0*upV |
| 434 | local edgePerp = 0*rightV + -1*upV |
| 435 | local cut = Instance.new("Part") |
| 436 | cut.Size = Vector3.new(35.2, 1.4, 35.2) |
| 437 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 17.6 * edgePerp, edgeDir, normalV) |
| 438 | cut.BrickColor = BrickColor.new("Silver") |
| 439 | cut.Material = Enum.Material.Glacier |
| 440 | cut.MaterialVariant = "2022 Stud" |
| 441 | cut.Anchored = true; cut.Parent = workspace |
| 442 | table.insert(angBoxes, cut) |
| 443 | end |
| 444 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 445 | if #cuts > 0 then |
| 446 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 447 | for _, c in ipairs(cuts) do c:Destroy() end |
| 448 | if ok and result then |
| 449 | cyl:Destroy() |
| 450 | result.Name = "InnerRingTop"; result.Anchored = true; result.Parent = model |
| 451 | else |
| 452 | cyl.Name = "InnerRingTop"; cyl.Parent = model |
| 453 | end |
| 454 | else |
| 455 | cyl.Name = "InnerRingTop"; cyl.Parent = model |
| 456 | end |
| 457 | end |
| 458 | do |
| 459 | local rightV = Vector3.new(0.707,0.707,0).Unit |
| 460 | local upV = (Vector3.new(-0.5,0.5,0.707) - Vector3.new(-0.5,0.5,0.707):Dot(rightV)*rightV).Unit |
| 461 | local normalV = upV:Cross(rightV) |
| 462 | local pos = Vector3.new(0, 16, 0) |
| 463 | local cyl = Instance.new("Part") |
| 464 | cyl.Shape = Enum.PartType.Cylinder |
| 465 | cyl.Size = Vector3.new(1.2, 17.6, 17.6) |
| 466 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 467 | cyl.BrickColor = BrickColor.new("Silver") |
| 468 | cyl.Material = Enum.Material.Glacier |
| 469 | cyl.MaterialVariant = "2022 Stud" |
| 470 | cyl.Anchored = true; cyl.Parent = workspace |
| 471 | local cuts = {} |
| 472 | local hole = Instance.new("Part") |
| 473 | hole.Shape = Enum.PartType.Cylinder |
| 474 | hole.Size = Vector3.new(1.4, 15.2, 15.2) |
| 475 | hole.CFrame = cyl.CFrame |
| 476 | hole.BrickColor = BrickColor.new("Silver") |
| 477 | hole.Material = Enum.Material.Glacier |
| 478 | hole.MaterialVariant = "2022 Stud" |
| 479 | hole.Anchored = true; hole.Parent = workspace |
| 480 | table.insert(cuts, hole) |
| 481 | local angBoxes = {} |
| 482 | do |
| 483 | local edgeDir = -1*rightV + 0*upV |
| 484 | local edgePerp = 0*rightV + -1*upV |
| 485 | local cut = Instance.new("Part") |
| 486 | cut.Size = Vector3.new(35.2, 1.4, 35.2) |
| 487 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 17.6 * edgePerp, edgeDir, normalV) |
| 488 | cut.BrickColor = BrickColor.new("Silver") |
| 489 | cut.Material = Enum.Material.Glacier |
| 490 | cut.MaterialVariant = "2022 Stud" |
| 491 | cut.Anchored = true; cut.Parent = workspace |
| 492 | table.insert(angBoxes, cut) |
| 493 | end |
| 494 | do |
| 495 | local edgeDir = 1*rightV + 0*upV |
| 496 | local edgePerp = 0*rightV + 1*upV |
| 497 | local cut = Instance.new("Part") |
| 498 | cut.Size = Vector3.new(35.2, 1.4, 35.2) |
| 499 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 17.6 * edgePerp, edgeDir, normalV) |
| 500 | cut.BrickColor = BrickColor.new("Silver") |
| 501 | cut.Material = Enum.Material.Glacier |
| 502 | cut.MaterialVariant = "2022 Stud" |
| 503 | cut.Anchored = true; cut.Parent = workspace |
| 504 | table.insert(angBoxes, cut) |
| 505 | end |
| 506 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 507 | if #cuts > 0 then |
| 508 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 509 | for _, c in ipairs(cuts) do c:Destroy() end |
| 510 | if ok and result then |
| 511 | cyl:Destroy() |
| 512 | result.Name = "InnerRingBot"; result.Anchored = true; result.Parent = model |
| 513 | else |
| 514 | cyl.Name = "InnerRingBot"; cyl.Parent = model |
| 515 | end |
| 516 | else |
| 517 | cyl.Name = "InnerRingBot"; cyl.Parent = model |
| 518 | end |
| 519 | end |
| 520 | model.PrimaryPart = model:FindFirstChild("BasePlatform") |
| 521 | print("Aerotrim built: " .. #model:GetChildren() .. " parts") |
Loading comments...