Loading model...
by Rik Fennema · 9/20/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: MoonRelic |
| 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 = "MoonRelic" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright blue"] = "2022 Universal", |
| 25 | ["Navy blue"] = "2022 Stud", |
| 26 | ["Pastel Blue"] = "2022 Stud", |
| 27 | } |
| 28 | do |
| 29 | local p = Instance.new("Part") |
| 30 | p.Name = "Core" |
| 31 | p.Size = Vector3.new(6, 6, 6) |
| 32 | p.CFrame = CFrame.new(0, 0, 0) |
| 33 | p.BrickColor = BrickColor.new("Navy blue") |
| 34 | p.Material = Enum.Material.Glacier |
| 35 | p.MaterialVariant = "2022 Stud" |
| 36 | p.Anchored = true |
| 37 | p.Parent = model |
| 38 | end |
| 39 | do |
| 40 | local p = Instance.new("Part") |
| 41 | p.Name = "FrontPanel" |
| 42 | p.Size = Vector3.new(5, 5, 0.4) |
| 43 | p.CFrame = CFrame.new(0, 0, -3.24) |
| 44 | p.BrickColor = BrickColor.new("Navy blue") |
| 45 | p.Material = Enum.Material.Glacier |
| 46 | p.MaterialVariant = "2022 Stud" |
| 47 | p.Anchored = true |
| 48 | p.Parent = model |
| 49 | end |
| 50 | do |
| 51 | local p = Instance.new("Part") |
| 52 | p.Name = "FrontFrame" |
| 53 | p.Size = Vector3.new(5.4, 5.4, 0.2) |
| 54 | p.CFrame = CFrame.new(0, 0, -3.58) |
| 55 | p.BrickColor = BrickColor.new("Bright blue") |
| 56 | p.Material = Enum.Material.Glacier |
| 57 | p.MaterialVariant = "2022 Universal" |
| 58 | p.Anchored = true |
| 59 | p.Parent = model |
| 60 | end |
| 61 | do |
| 62 | local p = Instance.new("Part") |
| 63 | p.Name = "FrontScreen" |
| 64 | p.Size = Vector3.new(4.6, 4.6, 0.1) |
| 65 | p.CFrame = CFrame.new(0, 0, -3.77) |
| 66 | p.BrickColor = BrickColor.new("Navy blue") |
| 67 | p.Material = Enum.Material.Glacier |
| 68 | p.MaterialVariant = "2022 Stud" |
| 69 | p.Anchored = true |
| 70 | p.Parent = model |
| 71 | end |
| 72 | do |
| 73 | local p = Instance.new("Part") |
| 74 | p.Name = "MoonBody" |
| 75 | p.Size = Vector3.new(1.5, 2.5, 0.1) |
| 76 | p.CFrame = CFrame.new(-0.5, 0, -3.91) |
| 77 | p.BrickColor = BrickColor.new("Toothpaste") |
| 78 | p.Material = Enum.Material.Neon |
| 79 | p.Anchored = true |
| 80 | p.Parent = model |
| 81 | end |
| 82 | do |
| 83 | local p = Instance.new("Part") |
| 84 | p.Name = "MoonTop" |
| 85 | p.Size = Vector3.new(1, 0.8, 0.1) |
| 86 | p.CFrame = CFrame.new(0.2, 1, -3.87) |
| 87 | p.BrickColor = BrickColor.new("Toothpaste") |
| 88 | p.Material = Enum.Material.Neon |
| 89 | p.Anchored = true |
| 90 | p.Parent = model |
| 91 | end |
| 92 | do |
| 93 | local p = Instance.new("Part") |
| 94 | p.Name = "MoonBottom" |
| 95 | p.Size = Vector3.new(1.2, 0.8, 0.1) |
| 96 | p.CFrame = CFrame.new(0.5, -1, -3.87) |
| 97 | p.BrickColor = BrickColor.new("Toothpaste") |
| 98 | p.Material = Enum.Material.Neon |
| 99 | p.Anchored = true |
| 100 | p.Parent = model |
| 101 | end |
| 102 | do |
| 103 | local p = Instance.new("Part") |
| 104 | p.Name = "DotTL" |
| 105 | p.Size = Vector3.new(0.4, 0.4, 0.1) |
| 106 | p.CFrame = CFrame.new(-1.5, 1.5, -3.91) |
| 107 | p.BrickColor = BrickColor.new("Toothpaste") |
| 108 | p.Material = Enum.Material.Neon |
| 109 | p.Anchored = true |
| 110 | p.Parent = model |
| 111 | end |
| 112 | do |
| 113 | local p = Instance.new("Part") |
| 114 | p.Name = "DotBL" |
| 115 | p.Size = Vector3.new(0.4, 0.4, 0.1) |
| 116 | p.CFrame = CFrame.new(-1.5, -1.5, -3.91) |
| 117 | p.BrickColor = BrickColor.new("Toothpaste") |
| 118 | p.Material = Enum.Material.Neon |
| 119 | p.Anchored = true |
| 120 | p.Parent = model |
| 121 | end |
| 122 | do |
| 123 | local p = Instance.new("Part") |
| 124 | p.Name = "DotTR" |
| 125 | p.Size = Vector3.new(0.3, 0.3, 0.1) |
| 126 | p.CFrame = CFrame.new(1.5, 1, -3.91) |
| 127 | p.BrickColor = BrickColor.new("Toothpaste") |
| 128 | p.Material = Enum.Material.Neon |
| 129 | p.Anchored = true |
| 130 | p.Parent = model |
| 131 | end |
| 132 | do |
| 133 | local p = Instance.new("Part") |
| 134 | p.Name = "DotBR" |
| 135 | p.Size = Vector3.new(0.4, 0.4, 0.1) |
| 136 | p.CFrame = CFrame.new(1.5, -1.5, -3.91) |
| 137 | p.BrickColor = BrickColor.new("Toothpaste") |
| 138 | p.Material = Enum.Material.Neon |
| 139 | p.Anchored = true |
| 140 | p.Parent = model |
| 141 | end |
| 142 | do |
| 143 | local p = Instance.new("Part") |
| 144 | p.Name = "BackPanel" |
| 145 | p.Size = Vector3.new(5, 5, 0.4) |
| 146 | p.CFrame = CFrame.new(0, 0, 3.24) |
| 147 | p.BrickColor = BrickColor.new("Navy blue") |
| 148 | p.Material = Enum.Material.Glacier |
| 149 | p.MaterialVariant = "2022 Stud" |
| 150 | p.Anchored = true |
| 151 | p.Parent = model |
| 152 | end |
| 153 | do |
| 154 | local p = Instance.new("Part") |
| 155 | p.Name = "BackFrame" |
| 156 | p.Size = Vector3.new(5.4, 5.4, 0.2) |
| 157 | p.CFrame = CFrame.new(0, 0, 3.58) |
| 158 | p.BrickColor = BrickColor.new("Bright blue") |
| 159 | p.Material = Enum.Material.Glacier |
| 160 | p.MaterialVariant = "2022 Universal" |
| 161 | p.Anchored = true |
| 162 | p.Parent = model |
| 163 | end |
| 164 | do |
| 165 | local p = Instance.new("Part") |
| 166 | p.Name = "TopBase" |
| 167 | p.Size = Vector3.new(4, 0.4, 4) |
| 168 | p.CFrame = CFrame.new(0, 3.24, 0) |
| 169 | p.BrickColor = BrickColor.new("Navy blue") |
| 170 | p.Material = Enum.Material.Glacier |
| 171 | p.MaterialVariant = "2022 Stud" |
| 172 | p.Anchored = true |
| 173 | p.Parent = model |
| 174 | end |
| 175 | do |
| 176 | local p = Instance.new("Part") |
| 177 | p.Name = "TopGlow" |
| 178 | p.Size = Vector3.new(3.6, 0.4, 3.6) |
| 179 | p.CFrame = CFrame.new(0, 3.68, 0) |
| 180 | p.BrickColor = BrickColor.new("Toothpaste") |
| 181 | p.Material = Enum.Material.Neon |
| 182 | p.Anchored = true |
| 183 | p.Parent = model |
| 184 | end |
| 185 | do |
| 186 | local p = Instance.new("Part") |
| 187 | p.Name = "TopNeck" |
| 188 | p.Size = Vector3.new(3, 0.8, 3) |
| 189 | p.CFrame = CFrame.new(0, 4.16, 0) |
| 190 | p.BrickColor = BrickColor.new("Navy blue") |
| 191 | p.Material = Enum.Material.Glacier |
| 192 | p.MaterialVariant = "2022 Stud" |
| 193 | p.Anchored = true |
| 194 | p.Parent = model |
| 195 | end |
| 196 | do |
| 197 | local p = Instance.new("Part") |
| 198 | p.Name = "TopCapBase" |
| 199 | p.Size = Vector3.new(4.5, 0.4, 4.5) |
| 200 | p.CFrame = CFrame.new(0, 4.8, 0) |
| 201 | p.BrickColor = BrickColor.new("Bright blue") |
| 202 | p.Material = Enum.Material.Glacier |
| 203 | p.MaterialVariant = "2022 Universal" |
| 204 | p.Anchored = true |
| 205 | p.Parent = model |
| 206 | end |
| 207 | do |
| 208 | local p = Instance.new("Part") |
| 209 | p.Name = "TopCapRing" |
| 210 | p.Size = Vector3.new(5, 0.6, 5) |
| 211 | p.CFrame = CFrame.new(0, 5.2, 0) |
| 212 | p.BrickColor = BrickColor.new("Pastel Blue") |
| 213 | p.Material = Enum.Material.Glacier |
| 214 | p.MaterialVariant = "2022 Stud" |
| 215 | p.Anchored = true |
| 216 | p.Parent = model |
| 217 | end |
| 218 | do |
| 219 | local p = Instance.new("Part") |
| 220 | p.Name = "TopCapInner" |
| 221 | p.Size = Vector3.new(3, 0.65, 3) |
| 222 | p.CFrame = CFrame.new(0, 5.2, 0) |
| 223 | p.BrickColor = BrickColor.new("Bright blue") |
| 224 | p.Material = Enum.Material.Glacier |
| 225 | p.MaterialVariant = "2022 Universal" |
| 226 | p.Anchored = true |
| 227 | p.Parent = model |
| 228 | end |
| 229 | do |
| 230 | local p = Instance.new("Part") |
| 231 | p.Name = "BotBase" |
| 232 | p.Size = Vector3.new(4, 0.4, 4) |
| 233 | p.CFrame = CFrame.new(0, -3.24, 0) |
| 234 | p.BrickColor = BrickColor.new("Navy blue") |
| 235 | p.Material = Enum.Material.Glacier |
| 236 | p.MaterialVariant = "2022 Stud" |
| 237 | p.Anchored = true |
| 238 | p.Parent = model |
| 239 | end |
| 240 | do |
| 241 | local p = Instance.new("Part") |
| 242 | p.Name = "BotGlow" |
| 243 | p.Size = Vector3.new(3.6, 0.4, 3.6) |
| 244 | p.CFrame = CFrame.new(0, -3.68, 0) |
| 245 | p.BrickColor = BrickColor.new("Toothpaste") |
| 246 | p.Material = Enum.Material.Neon |
| 247 | p.Anchored = true |
| 248 | p.Parent = model |
| 249 | end |
| 250 | do |
| 251 | local p = Instance.new("Part") |
| 252 | p.Name = "BotNeck" |
| 253 | p.Size = Vector3.new(3, 0.8, 3) |
| 254 | p.CFrame = CFrame.new(0, -4.16, 0) |
| 255 | p.BrickColor = BrickColor.new("Navy blue") |
| 256 | p.Material = Enum.Material.Glacier |
| 257 | p.MaterialVariant = "2022 Stud" |
| 258 | p.Anchored = true |
| 259 | p.Parent = model |
| 260 | end |
| 261 | do |
| 262 | local p = Instance.new("Part") |
| 263 | p.Name = "BotCapBase" |
| 264 | p.Size = Vector3.new(4.5, 0.4, 4.5) |
| 265 | p.CFrame = CFrame.new(0, -4.8, 0) |
| 266 | p.BrickColor = BrickColor.new("Bright blue") |
| 267 | p.Material = Enum.Material.Glacier |
| 268 | p.MaterialVariant = "2022 Universal" |
| 269 | p.Anchored = true |
| 270 | p.Parent = model |
| 271 | end |
| 272 | do |
| 273 | local p = Instance.new("Part") |
| 274 | p.Name = "BotCapRing" |
| 275 | p.Size = Vector3.new(5, 0.6, 5) |
| 276 | p.CFrame = CFrame.new(0, -5.2, 0) |
| 277 | p.BrickColor = BrickColor.new("Pastel Blue") |
| 278 | p.Material = Enum.Material.Glacier |
| 279 | p.MaterialVariant = "2022 Stud" |
| 280 | p.Anchored = true |
| 281 | p.Parent = model |
| 282 | end |
| 283 | do |
| 284 | local p = Instance.new("Part") |
| 285 | p.Name = "RightStep1" |
| 286 | p.Size = Vector3.new(0.4, 4.5, 4.5) |
| 287 | p.CFrame = CFrame.new(3.24, 0, 0) |
| 288 | p.BrickColor = BrickColor.new("Navy blue") |
| 289 | p.Material = Enum.Material.Glacier |
| 290 | p.MaterialVariant = "2022 Stud" |
| 291 | p.Anchored = true |
| 292 | p.Parent = model |
| 293 | end |
| 294 | do |
| 295 | local p = Instance.new("Part") |
| 296 | p.Name = "RightStep2" |
| 297 | p.Size = Vector3.new(0.4, 3.5, 3.5) |
| 298 | p.CFrame = CFrame.new(3.68, 0, 0) |
| 299 | p.BrickColor = BrickColor.new("Navy blue") |
| 300 | p.Material = Enum.Material.Glacier |
| 301 | p.MaterialVariant = "2022 Stud" |
| 302 | p.Anchored = true |
| 303 | p.Parent = model |
| 304 | end |
| 305 | do |
| 306 | local p = Instance.new("Part") |
| 307 | p.Name = "RightStep3" |
| 308 | p.Size = Vector3.new(0.4, 2.5, 2.5) |
| 309 | p.CFrame = CFrame.new(4.12, 0, 0) |
| 310 | p.BrickColor = BrickColor.new("Navy blue") |
| 311 | p.Material = Enum.Material.Glacier |
| 312 | p.MaterialVariant = "2022 Stud" |
| 313 | p.Anchored = true |
| 314 | p.Parent = model |
| 315 | end |
| 316 | do |
| 317 | local p = Instance.new("Part") |
| 318 | p.Name = "RightConnector" |
| 319 | p.Size = Vector3.new(0.8, 1.5, 1.5) |
| 320 | p.CFrame = CFrame.new(4.76, 0, 0) |
| 321 | p.BrickColor = BrickColor.new("Toothpaste") |
| 322 | p.Material = Enum.Material.Neon |
| 323 | p.Anchored = true |
| 324 | p.Parent = model |
| 325 | end |
| 326 | do |
| 327 | local p = Instance.new("Part") |
| 328 | p.Name = "LeftStep1" |
| 329 | p.Size = Vector3.new(0.4, 4.5, 4.5) |
| 330 | p.CFrame = CFrame.new(-3.24, 0, 0) |
| 331 | p.BrickColor = BrickColor.new("Navy blue") |
| 332 | p.Material = Enum.Material.Glacier |
| 333 | p.MaterialVariant = "2022 Stud" |
| 334 | p.Anchored = true |
| 335 | p.Parent = model |
| 336 | end |
| 337 | do |
| 338 | local p = Instance.new("Part") |
| 339 | p.Name = "LeftStep2" |
| 340 | p.Size = Vector3.new(0.4, 3.5, 3.5) |
| 341 | p.CFrame = CFrame.new(-3.68, 0, 0) |
| 342 | p.BrickColor = BrickColor.new("Navy blue") |
| 343 | p.Material = Enum.Material.Glacier |
| 344 | p.MaterialVariant = "2022 Stud" |
| 345 | p.Anchored = true |
| 346 | p.Parent = model |
| 347 | end |
| 348 | do |
| 349 | local p = Instance.new("Part") |
| 350 | p.Name = "LeftStep3" |
| 351 | p.Size = Vector3.new(0.4, 2.5, 2.5) |
| 352 | p.CFrame = CFrame.new(-4.12, 0, 0) |
| 353 | p.BrickColor = BrickColor.new("Navy blue") |
| 354 | p.Material = Enum.Material.Glacier |
| 355 | p.MaterialVariant = "2022 Stud" |
| 356 | p.Anchored = true |
| 357 | p.Parent = model |
| 358 | end |
| 359 | do |
| 360 | local p = Instance.new("Part") |
| 361 | p.Name = "LeftConnector" |
| 362 | p.Size = Vector3.new(0.8, 1.5, 1.5) |
| 363 | p.CFrame = CFrame.new(-4.76, 0, 0) |
| 364 | p.BrickColor = BrickColor.new("Toothpaste") |
| 365 | p.Material = Enum.Material.Neon |
| 366 | p.Anchored = true |
| 367 | p.Parent = model |
| 368 | end |
| 369 | do |
| 370 | local rightV = Vector3.new(0,1,0).Unit |
| 371 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 372 | local normalV = upV:Cross(rightV) |
| 373 | local pos = Vector3.new(5, 0, 0) |
| 374 | local cyl = Instance.new("Part") |
| 375 | cyl.Shape = Enum.PartType.Cylinder |
| 376 | cyl.Size = Vector3.new(1, 7, 7) |
| 377 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 378 | cyl.BrickColor = BrickColor.new("Pastel Blue") |
| 379 | cyl.Material = Enum.Material.Glacier |
| 380 | cyl.MaterialVariant = "2022 Stud" |
| 381 | cyl.Anchored = true; cyl.Parent = workspace |
| 382 | local cuts = {} |
| 383 | local hole = Instance.new("Part") |
| 384 | hole.Shape = Enum.PartType.Cylinder |
| 385 | hole.Size = Vector3.new(1.2, 5, 5) |
| 386 | hole.CFrame = cyl.CFrame |
| 387 | hole.BrickColor = BrickColor.new("Pastel Blue") |
| 388 | hole.Material = Enum.Material.Glacier |
| 389 | hole.MaterialVariant = "2022 Stud" |
| 390 | hole.Anchored = true; hole.Parent = workspace |
| 391 | table.insert(cuts, hole) |
| 392 | local angBoxes = {} |
| 393 | do |
| 394 | local edgeDir = 0.866025*rightV + 0.5*upV |
| 395 | local edgePerp = -0.5*rightV + 0.866025*upV |
| 396 | local cut = Instance.new("Part") |
| 397 | cut.Size = Vector3.new(14, 1.2, 14) |
| 398 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 7 * edgePerp, edgeDir, normalV) |
| 399 | cut.BrickColor = BrickColor.new("Pastel Blue") |
| 400 | cut.Material = Enum.Material.Glacier |
| 401 | cut.MaterialVariant = "2022 Stud" |
| 402 | cut.Anchored = true; cut.Parent = workspace |
| 403 | table.insert(angBoxes, cut) |
| 404 | end |
| 405 | do |
| 406 | local edgeDir = 0.866025*rightV + -0.5*upV |
| 407 | local edgePerp = 0.5*rightV + 0.866025*upV |
| 408 | local cut = Instance.new("Part") |
| 409 | cut.Size = Vector3.new(14, 1.2, 14) |
| 410 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 7 * edgePerp, edgeDir, normalV) |
| 411 | cut.BrickColor = BrickColor.new("Pastel Blue") |
| 412 | cut.Material = Enum.Material.Glacier |
| 413 | cut.MaterialVariant = "2022 Stud" |
| 414 | cut.Anchored = true; cut.Parent = workspace |
| 415 | table.insert(angBoxes, cut) |
| 416 | end |
| 417 | do |
| 418 | local w = angBoxes[1]:IntersectAsync({angBoxes[2]}) |
| 419 | angBoxes[1]:Destroy(); angBoxes[2]:Destroy() |
| 420 | w.Anchored = true; w.Parent = workspace |
| 421 | table.insert(cuts, w) |
| 422 | end |
| 423 | if #cuts > 0 then |
| 424 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 425 | for _, c in ipairs(cuts) do c:Destroy() end |
| 426 | if ok and result then |
| 427 | cyl:Destroy() |
| 428 | result.Name = "RightHandle"; result.Anchored = true; result.Parent = model |
| 429 | else |
| 430 | cyl.Name = "RightHandle"; cyl.Parent = model |
| 431 | end |
| 432 | else |
| 433 | cyl.Name = "RightHandle"; cyl.Parent = model |
| 434 | end |
| 435 | end |
| 436 | do |
| 437 | local rightV = Vector3.new(0,1,0).Unit |
| 438 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 439 | local normalV = upV:Cross(rightV) |
| 440 | local pos = Vector3.new(-5, 0, 0) |
| 441 | local cyl = Instance.new("Part") |
| 442 | cyl.Shape = Enum.PartType.Cylinder |
| 443 | cyl.Size = Vector3.new(1, 7, 7) |
| 444 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 445 | cyl.BrickColor = BrickColor.new("Pastel Blue") |
| 446 | cyl.Material = Enum.Material.Glacier |
| 447 | cyl.MaterialVariant = "2022 Stud" |
| 448 | cyl.Anchored = true; cyl.Parent = workspace |
| 449 | local cuts = {} |
| 450 | local hole = Instance.new("Part") |
| 451 | hole.Shape = Enum.PartType.Cylinder |
| 452 | hole.Size = Vector3.new(1.2, 5, 5) |
| 453 | hole.CFrame = cyl.CFrame |
| 454 | hole.BrickColor = BrickColor.new("Pastel Blue") |
| 455 | hole.Material = Enum.Material.Glacier |
| 456 | hole.MaterialVariant = "2022 Stud" |
| 457 | hole.Anchored = true; hole.Parent = workspace |
| 458 | table.insert(cuts, hole) |
| 459 | local angBoxes = {} |
| 460 | do |
| 461 | local edgeDir = 0.866025*rightV + 0.5*upV |
| 462 | local edgePerp = -0.5*rightV + 0.866025*upV |
| 463 | local cut = Instance.new("Part") |
| 464 | cut.Size = Vector3.new(14, 1.2, 14) |
| 465 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 7 * edgePerp, edgeDir, normalV) |
| 466 | cut.BrickColor = BrickColor.new("Pastel Blue") |
| 467 | cut.Material = Enum.Material.Glacier |
| 468 | cut.MaterialVariant = "2022 Stud" |
| 469 | cut.Anchored = true; cut.Parent = workspace |
| 470 | table.insert(angBoxes, cut) |
| 471 | end |
| 472 | do |
| 473 | local edgeDir = 0.866025*rightV + -0.5*upV |
| 474 | local edgePerp = 0.5*rightV + 0.866025*upV |
| 475 | local cut = Instance.new("Part") |
| 476 | cut.Size = Vector3.new(14, 1.2, 14) |
| 477 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 7 * edgePerp, edgeDir, normalV) |
| 478 | cut.BrickColor = BrickColor.new("Pastel Blue") |
| 479 | cut.Material = Enum.Material.Glacier |
| 480 | cut.MaterialVariant = "2022 Stud" |
| 481 | cut.Anchored = true; cut.Parent = workspace |
| 482 | table.insert(angBoxes, cut) |
| 483 | end |
| 484 | do |
| 485 | local w = angBoxes[1]:IntersectAsync({angBoxes[2]}) |
| 486 | angBoxes[1]:Destroy(); angBoxes[2]:Destroy() |
| 487 | w.Anchored = true; w.Parent = workspace |
| 488 | table.insert(cuts, w) |
| 489 | end |
| 490 | if #cuts > 0 then |
| 491 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 492 | for _, c in ipairs(cuts) do c:Destroy() end |
| 493 | if ok and result then |
| 494 | cyl:Destroy() |
| 495 | result.Name = "LeftHandle"; result.Anchored = true; result.Parent = model |
| 496 | else |
| 497 | cyl.Name = "LeftHandle"; cyl.Parent = model |
| 498 | end |
| 499 | else |
| 500 | cyl.Name = "LeftHandle"; cyl.Parent = model |
| 501 | end |
| 502 | end |
| 503 | model.PrimaryPart = model:FindFirstChild("Core") |
| 504 | print("MoonRelic built: " .. #model:GetChildren() .. " parts") |
Loading comments...