Loading model...
by lvkee · 9/5/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: SciFiBattery |
| 3 | |
| 4 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 5 | -- Model: SciFiBattery |
| 6 | |
| 7 | local MS = game:GetService("MaterialService") |
| 8 | |
| 9 | local ok, roots = pcall(game.GetObjects, game, "rbxassetid://13386676607") |
| 10 | if not ok then return warn(roots) end |
| 11 | |
| 12 | local tmp = Instance.new("Folder") |
| 13 | for _, r in ipairs(roots) do r.Parent = tmp end |
| 14 | |
| 15 | for _, d in ipairs(tmp:GetDescendants()) do |
| 16 | if d:IsA("MaterialVariant") then |
| 17 | d.Parent = MS |
| 18 | end |
| 19 | end |
| 20 | tmp:Destroy() |
| 21 | |
| 22 | local model = Instance.new("Model") |
| 23 | model.Name = "SciFiBattery" |
| 24 | model.Parent = workspace |
| 25 | |
| 26 | local variants = { |
| 27 | ["Bright green"] = "2022 Stud", |
| 28 | ["Bronze"] = "2022 Stud", |
| 29 | ["Dark stone grey"] = "2022 Stud", |
| 30 | ["Medium stone grey"] = "2022 Inlet", |
| 31 | ["Mint"] = "2022 Stud", |
| 32 | ["Silver"] = "2022 Stud", |
| 33 | } |
| 34 | do |
| 35 | local p = Instance.new("Part") |
| 36 | p.Shape = Enum.PartType.Cylinder |
| 37 | p.Name = "BottomCap1" |
| 38 | p.Size = Vector3.new(0.8, 12, 12) |
| 39 | p.CFrame = CFrame.new(0, 0.4, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 40 | p.BrickColor = BrickColor.new("Bronze") |
| 41 | p.Material = Enum.Material.Glacier |
| 42 | p.MaterialVariant = "2022 Stud" |
| 43 | p.Anchored = true |
| 44 | p.Parent = model |
| 45 | end |
| 46 | do |
| 47 | local p = Instance.new("Part") |
| 48 | p.Shape = Enum.PartType.Cylinder |
| 49 | p.Name = "BottomCap2" |
| 50 | p.Size = Vector3.new(0.4, 11.6, 11.6) |
| 51 | p.CFrame = CFrame.new(0, 1.04, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 52 | p.BrickColor = BrickColor.new("Bronze") |
| 53 | p.Material = Enum.Material.Glacier |
| 54 | p.MaterialVariant = "2022 Stud" |
| 55 | p.Anchored = true |
| 56 | p.Parent = model |
| 57 | end |
| 58 | do |
| 59 | local p = Instance.new("Part") |
| 60 | p.Shape = Enum.PartType.Cylinder |
| 61 | p.Name = "BottomCap3" |
| 62 | p.Size = Vector3.new(0.4, 11.2, 11.2) |
| 63 | p.CFrame = CFrame.new(0, 1.48, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 64 | p.BrickColor = BrickColor.new("Bronze") |
| 65 | p.Material = Enum.Material.Glacier |
| 66 | p.MaterialVariant = "2022 Stud" |
| 67 | p.Anchored = true |
| 68 | p.Parent = model |
| 69 | end |
| 70 | do |
| 71 | local p = Instance.new("Part") |
| 72 | p.Shape = Enum.PartType.Cylinder |
| 73 | p.Name = "BottomCap4" |
| 74 | p.Size = Vector3.new(0.4, 10.8, 10.8) |
| 75 | p.CFrame = CFrame.new(0, 1.92, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 76 | p.BrickColor = BrickColor.new("Bronze") |
| 77 | p.Material = Enum.Material.Glacier |
| 78 | p.MaterialVariant = "2022 Stud" |
| 79 | p.Anchored = true |
| 80 | p.Parent = model |
| 81 | end |
| 82 | do |
| 83 | local p = Instance.new("Part") |
| 84 | p.Shape = Enum.PartType.Cylinder |
| 85 | p.Name = "InnerFloorBase" |
| 86 | p.Size = Vector3.new(0.6, 10.4, 10.4) |
| 87 | p.CFrame = CFrame.new(0, 2.26, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 88 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 89 | p.Material = Enum.Material.Glacier |
| 90 | p.MaterialVariant = "2022 Stud" |
| 91 | p.Anchored = true |
| 92 | p.Parent = model |
| 93 | end |
| 94 | do |
| 95 | local p = Instance.new("Part") |
| 96 | p.Shape = Enum.PartType.Cylinder |
| 97 | p.Name = "InnerFloorTop" |
| 98 | p.Size = Vector3.new(0.4, 9.8, 9.8) |
| 99 | p.CFrame = CFrame.new(0, 2.84, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 100 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 101 | p.Material = Enum.Material.Glacier |
| 102 | p.MaterialVariant = "2022 Stud" |
| 103 | p.Anchored = true |
| 104 | p.Parent = model |
| 105 | end |
| 106 | do |
| 107 | local p = Instance.new("Part") |
| 108 | p.Shape = Enum.PartType.Cylinder |
| 109 | p.Name = "CoreBaseGlow" |
| 110 | p.Size = Vector3.new(0.2, 6.4, 6.4) |
| 111 | p.CFrame = CFrame.new(0, 3.18, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 112 | p.BrickColor = BrickColor.new("Lime green") |
| 113 | p.Material = Enum.Material.Neon |
| 114 | p.Anchored = true |
| 115 | p.Parent = model |
| 116 | end |
| 117 | do |
| 118 | local p = Instance.new("Part") |
| 119 | p.Shape = Enum.PartType.Cylinder |
| 120 | p.Name = "GlowConeBot1" |
| 121 | p.Size = Vector3.new(0.1, 2, 2) |
| 122 | p.CFrame = CFrame.new(0, 2.9, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 123 | p.BrickColor = BrickColor.new("Lime green") |
| 124 | p.Material = Enum.Material.Neon |
| 125 | p.Anchored = true |
| 126 | p.Parent = model |
| 127 | end |
| 128 | do |
| 129 | local p = Instance.new("Part") |
| 130 | p.Shape = Enum.PartType.Cylinder |
| 131 | p.Name = "GlowConeBot2" |
| 132 | p.Size = Vector3.new(0.1, 1.2, 1.2) |
| 133 | p.CFrame = CFrame.new(0, 2.96, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 134 | p.BrickColor = BrickColor.new("Lime green") |
| 135 | p.Material = Enum.Material.Neon |
| 136 | p.Anchored = true |
| 137 | p.Parent = model |
| 138 | end |
| 139 | do |
| 140 | local p = Instance.new("Part") |
| 141 | p.Shape = Enum.PartType.Cylinder |
| 142 | p.Name = "GlowConeBot3" |
| 143 | p.Size = Vector3.new(0.1, 0.4, 0.4) |
| 144 | p.CFrame = CFrame.new(0, 3.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 145 | p.BrickColor = BrickColor.new("Lime green") |
| 146 | p.Material = Enum.Material.Neon |
| 147 | p.Anchored = true |
| 148 | p.Parent = model |
| 149 | end |
| 150 | do |
| 151 | local p = Instance.new("Part") |
| 152 | p.Shape = Enum.PartType.Ball |
| 153 | p.Name = "BaseLight_0" |
| 154 | p.Size = Vector3.new(0.3, 0.3, 0.3) |
| 155 | p.CFrame = CFrame.new(5.8, 1, 0) |
| 156 | p.BrickColor = BrickColor.new("Lime green") |
| 157 | p.Material = Enum.Material.Neon |
| 158 | p.Anchored = true |
| 159 | p.Parent = model |
| 160 | end |
| 161 | do |
| 162 | local p = Instance.new("Part") |
| 163 | p.Shape = Enum.PartType.Ball |
| 164 | p.Name = "BaseLight_1" |
| 165 | p.Size = Vector3.new(0.3, 0.3, 0.3) |
| 166 | p.CFrame = CFrame.new(4.10122, 1, 4.10122) |
| 167 | p.BrickColor = BrickColor.new("Lime green") |
| 168 | p.Material = Enum.Material.Neon |
| 169 | p.Anchored = true |
| 170 | p.Parent = model |
| 171 | end |
| 172 | do |
| 173 | local p = Instance.new("Part") |
| 174 | p.Shape = Enum.PartType.Ball |
| 175 | p.Name = "BaseLight_2" |
| 176 | p.Size = Vector3.new(0.3, 0.3, 0.3) |
| 177 | p.CFrame = CFrame.new(0, 1, 5.8) |
| 178 | p.BrickColor = BrickColor.new("Lime green") |
| 179 | p.Material = Enum.Material.Neon |
| 180 | p.Anchored = true |
| 181 | p.Parent = model |
| 182 | end |
| 183 | do |
| 184 | local p = Instance.new("Part") |
| 185 | p.Shape = Enum.PartType.Ball |
| 186 | p.Name = "BaseLight_3" |
| 187 | p.Size = Vector3.new(0.3, 0.3, 0.3) |
| 188 | p.CFrame = CFrame.new(-4.10122, 1, 4.10122) |
| 189 | p.BrickColor = BrickColor.new("Lime green") |
| 190 | p.Material = Enum.Material.Neon |
| 191 | p.Anchored = true |
| 192 | p.Parent = model |
| 193 | end |
| 194 | do |
| 195 | local p = Instance.new("Part") |
| 196 | p.Shape = Enum.PartType.Ball |
| 197 | p.Name = "BaseLight_4" |
| 198 | p.Size = Vector3.new(0.3, 0.3, 0.3) |
| 199 | p.CFrame = CFrame.new(-5.8, 1, 0) |
| 200 | p.BrickColor = BrickColor.new("Lime green") |
| 201 | p.Material = Enum.Material.Neon |
| 202 | p.Anchored = true |
| 203 | p.Parent = model |
| 204 | end |
| 205 | do |
| 206 | local p = Instance.new("Part") |
| 207 | p.Shape = Enum.PartType.Ball |
| 208 | p.Name = "BaseLight_5" |
| 209 | p.Size = Vector3.new(0.3, 0.3, 0.3) |
| 210 | p.CFrame = CFrame.new(-4.10122, 1, -4.10122) |
| 211 | p.BrickColor = BrickColor.new("Lime green") |
| 212 | p.Material = Enum.Material.Neon |
| 213 | p.Anchored = true |
| 214 | p.Parent = model |
| 215 | end |
| 216 | do |
| 217 | local p = Instance.new("Part") |
| 218 | p.Shape = Enum.PartType.Ball |
| 219 | p.Name = "BaseLight_6" |
| 220 | p.Size = Vector3.new(0.3, 0.3, 0.3) |
| 221 | p.CFrame = CFrame.new(0, 1, -5.8) |
| 222 | p.BrickColor = BrickColor.new("Lime green") |
| 223 | p.Material = Enum.Material.Neon |
| 224 | p.Anchored = true |
| 225 | p.Parent = model |
| 226 | end |
| 227 | do |
| 228 | local p = Instance.new("Part") |
| 229 | p.Shape = Enum.PartType.Ball |
| 230 | p.Name = "BaseLight_7" |
| 231 | p.Size = Vector3.new(0.3, 0.3, 0.3) |
| 232 | p.CFrame = CFrame.new(4.10122, 1, -4.10122) |
| 233 | p.BrickColor = BrickColor.new("Lime green") |
| 234 | p.Material = Enum.Material.Neon |
| 235 | p.Anchored = true |
| 236 | p.Parent = model |
| 237 | end |
| 238 | do |
| 239 | local p = Instance.new("Part") |
| 240 | p.Shape = Enum.PartType.Cylinder |
| 241 | p.Name = "CoreSpine" |
| 242 | p.Size = Vector3.new(12.8, 2, 2) |
| 243 | p.CFrame = CFrame.new(0, 9.64, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 244 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 245 | p.Material = Enum.Material.Glacier |
| 246 | p.MaterialVariant = "2022 Stud" |
| 247 | p.Anchored = true |
| 248 | p.Parent = model |
| 249 | end |
| 250 | do |
| 251 | local p = Instance.new("Part") |
| 252 | p.Shape = Enum.PartType.Cylinder |
| 253 | p.Name = "Seg1" |
| 254 | p.Size = Vector3.new(2.9, 6, 6) |
| 255 | p.CFrame = CFrame.new(0, 4.65, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 256 | p.BrickColor = BrickColor.new("Bright green") |
| 257 | p.Material = Enum.Material.Glacier |
| 258 | p.MaterialVariant = "2022 Stud" |
| 259 | p.Anchored = true |
| 260 | p.Parent = model |
| 261 | end |
| 262 | do |
| 263 | local p = Instance.new("Part") |
| 264 | p.Shape = Enum.PartType.Cylinder |
| 265 | p.Name = "Ring1" |
| 266 | p.Size = Vector3.new(0.4, 6.2, 6.2) |
| 267 | p.CFrame = CFrame.new(0, 6.34, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 268 | p.BrickColor = BrickColor.new("Lime green") |
| 269 | p.Material = Enum.Material.Neon |
| 270 | p.Anchored = true |
| 271 | p.Parent = model |
| 272 | end |
| 273 | do |
| 274 | local p = Instance.new("Part") |
| 275 | p.Shape = Enum.PartType.Cylinder |
| 276 | p.Name = "Seg2" |
| 277 | p.Size = Vector3.new(2.9, 6, 6) |
| 278 | p.CFrame = CFrame.new(0, 7.95, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 279 | p.BrickColor = BrickColor.new("Bright green") |
| 280 | p.Material = Enum.Material.Glacier |
| 281 | p.MaterialVariant = "2022 Stud" |
| 282 | p.Anchored = true |
| 283 | p.Parent = model |
| 284 | end |
| 285 | do |
| 286 | local p = Instance.new("Part") |
| 287 | p.Shape = Enum.PartType.Cylinder |
| 288 | p.Name = "Ring2" |
| 289 | p.Size = Vector3.new(0.4, 6.2, 6.2) |
| 290 | p.CFrame = CFrame.new(0, 9.64, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 291 | p.BrickColor = BrickColor.new("Lime green") |
| 292 | p.Material = Enum.Material.Neon |
| 293 | p.Anchored = true |
| 294 | p.Parent = model |
| 295 | end |
| 296 | do |
| 297 | local p = Instance.new("Part") |
| 298 | p.Shape = Enum.PartType.Cylinder |
| 299 | p.Name = "Seg3" |
| 300 | p.Size = Vector3.new(2.9, 6, 6) |
| 301 | p.CFrame = CFrame.new(0, 11.25, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 302 | p.BrickColor = BrickColor.new("Bright green") |
| 303 | p.Material = Enum.Material.Glacier |
| 304 | p.MaterialVariant = "2022 Stud" |
| 305 | p.Anchored = true |
| 306 | p.Parent = model |
| 307 | end |
| 308 | do |
| 309 | local p = Instance.new("Part") |
| 310 | p.Shape = Enum.PartType.Cylinder |
| 311 | p.Name = "Ring3" |
| 312 | p.Size = Vector3.new(0.4, 6.2, 6.2) |
| 313 | p.CFrame = CFrame.new(0, 12.94, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 314 | p.BrickColor = BrickColor.new("Lime green") |
| 315 | p.Material = Enum.Material.Neon |
| 316 | p.Anchored = true |
| 317 | p.Parent = model |
| 318 | end |
| 319 | do |
| 320 | local p = Instance.new("Part") |
| 321 | p.Shape = Enum.PartType.Cylinder |
| 322 | p.Name = "Seg4" |
| 323 | p.Size = Vector3.new(2.9, 6, 6) |
| 324 | p.CFrame = CFrame.new(0, 14.55, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 325 | p.BrickColor = BrickColor.new("Bright green") |
| 326 | p.Material = Enum.Material.Glacier |
| 327 | p.MaterialVariant = "2022 Stud" |
| 328 | p.Anchored = true |
| 329 | p.Parent = model |
| 330 | end |
| 331 | do |
| 332 | local p = Instance.new("Part") |
| 333 | p.Name = "CoreSideR" |
| 334 | p.Size = Vector3.new(0.4, 12, 1.2) |
| 335 | p.CFrame = CFrame.new(3, 9.6, 0) |
| 336 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 337 | p.Material = Enum.Material.Glacier |
| 338 | p.MaterialVariant = "2022 Stud" |
| 339 | p.Anchored = true |
| 340 | p.Parent = model |
| 341 | end |
| 342 | do |
| 343 | local p = Instance.new("Part") |
| 344 | p.Name = "CoreSideL" |
| 345 | p.Size = Vector3.new(0.4, 12, 1.2) |
| 346 | p.CFrame = CFrame.new(-3, 9.6, 0) |
| 347 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 348 | p.Material = Enum.Material.Glacier |
| 349 | p.MaterialVariant = "2022 Stud" |
| 350 | p.Anchored = true |
| 351 | p.Parent = model |
| 352 | end |
| 353 | do |
| 354 | local p = Instance.new("Part") |
| 355 | p.Name = "CoreSideB" |
| 356 | p.Size = Vector3.new(1.2, 12, 0.4) |
| 357 | p.CFrame = CFrame.new(0, 9.6, 3) |
| 358 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 359 | p.Material = Enum.Material.Glacier |
| 360 | p.MaterialVariant = "2022 Stud" |
| 361 | p.Anchored = true |
| 362 | p.Parent = model |
| 363 | end |
| 364 | do |
| 365 | local p = Instance.new("Part") |
| 366 | p.Name = "LedPanel1" |
| 367 | p.Size = Vector3.new(0.8, 1.2, 0.2) |
| 368 | p.CFrame = CFrame.new(0, 4.65, -2.95) |
| 369 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 370 | p.Material = Enum.Material.Glacier |
| 371 | p.MaterialVariant = "2022 Stud" |
| 372 | p.Anchored = true |
| 373 | p.Parent = model |
| 374 | end |
| 375 | do |
| 376 | local p = Instance.new("Part") |
| 377 | p.Shape = Enum.PartType.Ball |
| 378 | p.Name = "Led1" |
| 379 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 380 | p.CFrame = CFrame.new(0, 4.65, -3) |
| 381 | p.BrickColor = BrickColor.new("Lime green") |
| 382 | p.Material = Enum.Material.Neon |
| 383 | p.Anchored = true |
| 384 | p.Parent = model |
| 385 | end |
| 386 | do |
| 387 | local p = Instance.new("Part") |
| 388 | p.Name = "LedPanel2" |
| 389 | p.Size = Vector3.new(0.8, 1.2, 0.2) |
| 390 | p.CFrame = CFrame.new(0, 7.95, -2.95) |
| 391 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 392 | p.Material = Enum.Material.Glacier |
| 393 | p.MaterialVariant = "2022 Stud" |
| 394 | p.Anchored = true |
| 395 | p.Parent = model |
| 396 | end |
| 397 | do |
| 398 | local p = Instance.new("Part") |
| 399 | p.Shape = Enum.PartType.Ball |
| 400 | p.Name = "Led2" |
| 401 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 402 | p.CFrame = CFrame.new(0, 7.95, -3) |
| 403 | p.BrickColor = BrickColor.new("Lime green") |
| 404 | p.Material = Enum.Material.Neon |
| 405 | p.Anchored = true |
| 406 | p.Parent = model |
| 407 | end |
| 408 | do |
| 409 | local p = Instance.new("Part") |
| 410 | p.Name = "LedPanel3" |
| 411 | p.Size = Vector3.new(0.8, 1.2, 0.2) |
| 412 | p.CFrame = CFrame.new(0, 11.25, -2.95) |
| 413 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 414 | p.Material = Enum.Material.Glacier |
| 415 | p.MaterialVariant = "2022 Stud" |
| 416 | p.Anchored = true |
| 417 | p.Parent = model |
| 418 | end |
| 419 | do |
| 420 | local p = Instance.new("Part") |
| 421 | p.Shape = Enum.PartType.Ball |
| 422 | p.Name = "Led3" |
| 423 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 424 | p.CFrame = CFrame.new(0, 11.25, -3) |
| 425 | p.BrickColor = BrickColor.new("Lime green") |
| 426 | p.Material = Enum.Material.Neon |
| 427 | p.Anchored = true |
| 428 | p.Parent = model |
| 429 | end |
| 430 | do |
| 431 | local p = Instance.new("Part") |
| 432 | p.Name = "LedPanel4" |
| 433 | p.Size = Vector3.new(0.8, 1.2, 0.2) |
| 434 | p.CFrame = CFrame.new(0, 14.55, -2.95) |
| 435 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 436 | p.Material = Enum.Material.Glacier |
| 437 | p.MaterialVariant = "2022 Stud" |
| 438 | p.Anchored = true |
| 439 | p.Parent = model |
| 440 | end |
| 441 | do |
| 442 | local p = Instance.new("Part") |
| 443 | p.Shape = Enum.PartType.Ball |
| 444 | p.Name = "Led4" |
| 445 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 446 | p.CFrame = CFrame.new(0, 14.55, -3) |
| 447 | p.BrickColor = BrickColor.new("Lime green") |
| 448 | p.Material = Enum.Material.Neon |
| 449 | p.Anchored = true |
| 450 | p.Parent = model |
| 451 | end |
| 452 | do |
| 453 | local p = Instance.new("Part") |
| 454 | p.Shape = Enum.PartType.Cylinder |
| 455 | p.Name = "GlowConeTop1" |
| 456 | p.Size = Vector3.new(0.1, 2, 2) |
| 457 | p.CFrame = CFrame.new(0, 16.38, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 458 | p.BrickColor = BrickColor.new("Lime green") |
| 459 | p.Material = Enum.Material.Neon |
| 460 | p.Anchored = true |
| 461 | p.Parent = model |
| 462 | end |
| 463 | do |
| 464 | local p = Instance.new("Part") |
| 465 | p.Shape = Enum.PartType.Cylinder |
| 466 | p.Name = "GlowConeTop2" |
| 467 | p.Size = Vector3.new(0.1, 1.2, 1.2) |
| 468 | p.CFrame = CFrame.new(0, 16.16, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 469 | p.BrickColor = BrickColor.new("Lime green") |
| 470 | p.Material = Enum.Material.Neon |
| 471 | p.Anchored = true |
| 472 | p.Parent = model |
| 473 | end |
| 474 | do |
| 475 | local p = Instance.new("Part") |
| 476 | p.Shape = Enum.PartType.Cylinder |
| 477 | p.Name = "GlowConeTop3" |
| 478 | p.Size = Vector3.new(0.1, 0.4, 0.4) |
| 479 | p.CFrame = CFrame.new(0, 16.26, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 480 | p.BrickColor = BrickColor.new("Lime green") |
| 481 | p.Material = Enum.Material.Neon |
| 482 | p.Anchored = true |
| 483 | p.Parent = model |
| 484 | end |
| 485 | do |
| 486 | local p = Instance.new("Part") |
| 487 | p.Shape = Enum.PartType.Cylinder |
| 488 | p.Name = "CoreTopGlow" |
| 489 | p.Size = Vector3.new(0.2, 6.4, 6.4) |
| 490 | p.CFrame = CFrame.new(0, 16.18, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 491 | p.BrickColor = BrickColor.new("Lime green") |
| 492 | p.Material = Enum.Material.Neon |
| 493 | p.Anchored = true |
| 494 | p.Parent = model |
| 495 | end |
| 496 | do |
| 497 | local p = Instance.new("Part") |
| 498 | p.Shape = Enum.PartType.Cylinder |
| 499 | p.Name = "InnerCeilBot" |
| 500 | p.Size = Vector3.new(0.4, 9.8, 9.8) |
| 501 | p.CFrame = CFrame.new(0, 16.36, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 502 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 503 | p.Material = Enum.Material.Glacier |
| 504 | p.MaterialVariant = "2022 Stud" |
| 505 | p.Anchored = true |
| 506 | p.Parent = model |
| 507 | end |
| 508 | do |
| 509 | local p = Instance.new("Part") |
| 510 | p.Shape = Enum.PartType.Cylinder |
| 511 | p.Name = "InnerCeilBase" |
| 512 | p.Size = Vector3.new(0.6, 10.4, 10.4) |
| 513 | p.CFrame = CFrame.new(0, 16.94, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 514 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 515 | p.Material = Enum.Material.Glacier |
| 516 | p.MaterialVariant = "2022 Stud" |
| 517 | p.Anchored = true |
| 518 | p.Parent = model |
| 519 | end |
| 520 | do |
| 521 | local p = Instance.new("Part") |
| 522 | p.Shape = Enum.PartType.Cylinder |
| 523 | p.Name = "TopCap1" |
| 524 | p.Size = Vector3.new(0.4, 10.8, 10.8) |
| 525 | p.CFrame = CFrame.new(0, 17.48, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 526 | p.BrickColor = BrickColor.new("Bronze") |
| 527 | p.Material = Enum.Material.Glacier |
| 528 | p.MaterialVariant = "2022 Stud" |
| 529 | p.Anchored = true |
| 530 | p.Parent = model |
| 531 | end |
| 532 | do |
| 533 | local p = Instance.new("Part") |
| 534 | p.Shape = Enum.PartType.Cylinder |
| 535 | p.Name = "TopCap2" |
| 536 | p.Size = Vector3.new(0.4, 11.2, 11.2) |
| 537 | p.CFrame = CFrame.new(0, 17.72, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 538 | p.BrickColor = BrickColor.new("Bronze") |
| 539 | p.Material = Enum.Material.Glacier |
| 540 | p.MaterialVariant = "2022 Stud" |
| 541 | p.Anchored = true |
| 542 | p.Parent = model |
| 543 | end |
| 544 | do |
| 545 | local p = Instance.new("Part") |
| 546 | p.Shape = Enum.PartType.Cylinder |
| 547 | p.Name = "TopCap3" |
| 548 | p.Size = Vector3.new(0.4, 11.6, 11.6) |
| 549 | p.CFrame = CFrame.new(0, 18.16, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 550 | p.BrickColor = BrickColor.new("Bronze") |
| 551 | p.Material = Enum.Material.Glacier |
| 552 | p.MaterialVariant = "2022 Stud" |
| 553 | p.Anchored = true |
| 554 | p.Parent = model |
| 555 | end |
| 556 | do |
| 557 | local p = Instance.new("Part") |
| 558 | p.Shape = Enum.PartType.Cylinder |
| 559 | p.Name = "TopCap4" |
| 560 | p.Size = Vector3.new(0.8, 12, 12) |
| 561 | p.CFrame = CFrame.new(0, 18.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 562 | p.BrickColor = BrickColor.new("Bronze") |
| 563 | p.Material = Enum.Material.Glacier |
| 564 | p.MaterialVariant = "2022 Stud" |
| 565 | p.Anchored = true |
| 566 | p.Parent = model |
| 567 | end |
| 568 | do |
| 569 | local p = Instance.new("Part") |
| 570 | p.Shape = Enum.PartType.Ball |
| 571 | p.Name = "TopLight_0" |
| 572 | p.Size = Vector3.new(0.3, 0.3, 0.3) |
| 573 | p.CFrame = CFrame.new(5.8, 18.2, 0) |
| 574 | p.BrickColor = BrickColor.new("Lime green") |
| 575 | p.Material = Enum.Material.Neon |
| 576 | p.Anchored = true |
| 577 | p.Parent = model |
| 578 | end |
| 579 | do |
| 580 | local p = Instance.new("Part") |
| 581 | p.Shape = Enum.PartType.Ball |
| 582 | p.Name = "TopLight_1" |
| 583 | p.Size = Vector3.new(0.3, 0.3, 0.3) |
| 584 | p.CFrame = CFrame.new(4.10122, 18.2, 4.10122) |
| 585 | p.BrickColor = BrickColor.new("Lime green") |
| 586 | p.Material = Enum.Material.Neon |
| 587 | p.Anchored = true |
| 588 | p.Parent = model |
| 589 | end |
| 590 | do |
| 591 | local p = Instance.new("Part") |
| 592 | p.Shape = Enum.PartType.Ball |
| 593 | p.Name = "TopLight_2" |
| 594 | p.Size = Vector3.new(0.3, 0.3, 0.3) |
| 595 | p.CFrame = CFrame.new(0, 18.2, 5.8) |
| 596 | p.BrickColor = BrickColor.new("Lime green") |
| 597 | p.Material = Enum.Material.Neon |
| 598 | p.Anchored = true |
| 599 | p.Parent = model |
| 600 | end |
| 601 | do |
| 602 | local p = Instance.new("Part") |
| 603 | p.Shape = Enum.PartType.Ball |
| 604 | p.Name = "TopLight_3" |
| 605 | p.Size = Vector3.new(0.3, 0.3, 0.3) |
| 606 | p.CFrame = CFrame.new(-4.10122, 18.2, 4.10122) |
| 607 | p.BrickColor = BrickColor.new("Lime green") |
| 608 | p.Material = Enum.Material.Neon |
| 609 | p.Anchored = true |
| 610 | p.Parent = model |
| 611 | end |
| 612 | do |
| 613 | local p = Instance.new("Part") |
| 614 | p.Shape = Enum.PartType.Ball |
| 615 | p.Name = "TopLight_4" |
| 616 | p.Size = Vector3.new(0.3, 0.3, 0.3) |
| 617 | p.CFrame = CFrame.new(-5.8, 18.2, 0) |
| 618 | p.BrickColor = BrickColor.new("Lime green") |
| 619 | p.Material = Enum.Material.Neon |
| 620 | p.Anchored = true |
| 621 | p.Parent = model |
| 622 | end |
| 623 | do |
| 624 | local p = Instance.new("Part") |
| 625 | p.Shape = Enum.PartType.Ball |
| 626 | p.Name = "TopLight_5" |
| 627 | p.Size = Vector3.new(0.3, 0.3, 0.3) |
| 628 | p.CFrame = CFrame.new(-4.10122, 18.2, -4.10122) |
| 629 | p.BrickColor = BrickColor.new("Lime green") |
| 630 | p.Material = Enum.Material.Neon |
| 631 | p.Anchored = true |
| 632 | p.Parent = model |
| 633 | end |
| 634 | do |
| 635 | local p = Instance.new("Part") |
| 636 | p.Shape = Enum.PartType.Ball |
| 637 | p.Name = "TopLight_6" |
| 638 | p.Size = Vector3.new(0.3, 0.3, 0.3) |
| 639 | p.CFrame = CFrame.new(0, 18.2, -5.8) |
| 640 | p.BrickColor = BrickColor.new("Lime green") |
| 641 | p.Material = Enum.Material.Neon |
| 642 | p.Anchored = true |
| 643 | p.Parent = model |
| 644 | end |
| 645 | do |
| 646 | local p = Instance.new("Part") |
| 647 | p.Shape = Enum.PartType.Ball |
| 648 | p.Name = "TopLight_7" |
| 649 | p.Size = Vector3.new(0.3, 0.3, 0.3) |
| 650 | p.CFrame = CFrame.new(4.10122, 18.2, -4.10122) |
| 651 | p.BrickColor = BrickColor.new("Lime green") |
| 652 | p.Material = Enum.Material.Neon |
| 653 | p.Anchored = true |
| 654 | p.Parent = model |
| 655 | end |
| 656 | do |
| 657 | local p = Instance.new("Part") |
| 658 | p.Shape = Enum.PartType.Cylinder |
| 659 | p.Name = "ButtonBase" |
| 660 | p.Size = Vector3.new(0.5, 5, 5) |
| 661 | p.CFrame = CFrame.new(0, 19.49, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 662 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 663 | p.Material = Enum.Material.Glacier |
| 664 | p.MaterialVariant = "2022 Inlet" |
| 665 | p.Anchored = true |
| 666 | p.Parent = model |
| 667 | end |
| 668 | do |
| 669 | local p = Instance.new("Part") |
| 670 | p.Shape = Enum.PartType.Cylinder |
| 671 | p.Name = "ButtonGlow" |
| 672 | p.Size = Vector3.new(0.2, 4.4, 4.4) |
| 673 | p.CFrame = CFrame.new(0, 19.75, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 674 | p.BrickColor = BrickColor.new("Lime green") |
| 675 | p.Material = Enum.Material.Neon |
| 676 | p.Anchored = true |
| 677 | p.Parent = model |
| 678 | end |
| 679 | do |
| 680 | local p = Instance.new("Part") |
| 681 | p.Shape = Enum.PartType.Cylinder |
| 682 | p.Name = "Button" |
| 683 | p.Size = Vector3.new(0.4, 3.8, 3.8) |
| 684 | p.CFrame = CFrame.new(0, 20, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 685 | p.BrickColor = BrickColor.new("Silver") |
| 686 | p.Material = Enum.Material.Glacier |
| 687 | p.MaterialVariant = "2022 Stud" |
| 688 | p.Anchored = true |
| 689 | p.Parent = model |
| 690 | end |
| 691 | do |
| 692 | local p = Instance.new("Part") |
| 693 | p.Shape = Enum.PartType.Cylinder |
| 694 | p.Name = "ButtonCenter" |
| 695 | p.Size = Vector3.new(0.2, 2, 2) |
| 696 | p.CFrame = CFrame.new(0, 20.2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 697 | p.BrickColor = BrickColor.new("Lime green") |
| 698 | p.Material = Enum.Material.Neon |
| 699 | p.Anchored = true |
| 700 | p.Parent = model |
| 701 | end |
| 702 | do |
| 703 | local p = Instance.new("Part") |
| 704 | p.Shape = Enum.PartType.Cylinder |
| 705 | p.Name = "StrutFR" |
| 706 | p.Size = Vector3.new(15.2, 0.6, 0.6) |
| 707 | p.CFrame = CFrame.new(3.89, 9.76, -3.89) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 708 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 709 | p.Material = Enum.Material.Glacier |
| 710 | p.MaterialVariant = "2022 Stud" |
| 711 | p.Anchored = true |
| 712 | p.Parent = model |
| 713 | end |
| 714 | do |
| 715 | local p = Instance.new("Part") |
| 716 | p.Shape = Enum.PartType.Cylinder |
| 717 | p.Name = "StrutFL" |
| 718 | p.Size = Vector3.new(15.2, 0.6, 0.6) |
| 719 | p.CFrame = CFrame.new(-3.89, 9.76, -3.89) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 720 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 721 | p.Material = Enum.Material.Glacier |
| 722 | p.MaterialVariant = "2022 Stud" |
| 723 | p.Anchored = true |
| 724 | p.Parent = model |
| 725 | end |
| 726 | do |
| 727 | local p = Instance.new("Part") |
| 728 | p.Shape = Enum.PartType.Cylinder |
| 729 | p.Name = "StrutBL" |
| 730 | p.Size = Vector3.new(15.2, 0.6, 0.6) |
| 731 | p.CFrame = CFrame.new(-3.89, 9.76, 3.89) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 732 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 733 | p.Material = Enum.Material.Glacier |
| 734 | p.MaterialVariant = "2022 Stud" |
| 735 | p.Anchored = true |
| 736 | p.Parent = model |
| 737 | end |
| 738 | do |
| 739 | local p = Instance.new("Part") |
| 740 | p.Shape = Enum.PartType.Cylinder |
| 741 | p.Name = "StrutBR" |
| 742 | p.Size = Vector3.new(15.2, 0.6, 0.6) |
| 743 | p.CFrame = CFrame.new(3.89, 9.76, 3.89) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 744 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 745 | p.Material = Enum.Material.Glacier |
| 746 | p.MaterialVariant = "2022 Stud" |
| 747 | p.Anchored = true |
| 748 | p.Parent = model |
| 749 | end |
| 750 | do |
| 751 | local p = Instance.new("Part") |
| 752 | p.Shape = Enum.PartType.Cylinder |
| 753 | p.Name = "StrutGlowFR" |
| 754 | p.Size = Vector3.new(15.2, 0.2, 0.2) |
| 755 | p.CFrame = CFrame.new(3.7, 9.72, -3.7) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 756 | p.BrickColor = BrickColor.new("Lime green") |
| 757 | p.Material = Enum.Material.Neon |
| 758 | p.Anchored = true |
| 759 | p.Parent = model |
| 760 | end |
| 761 | do |
| 762 | local p = Instance.new("Part") |
| 763 | p.Shape = Enum.PartType.Cylinder |
| 764 | p.Name = "StrutGlowFL" |
| 765 | p.Size = Vector3.new(15.2, 0.2, 0.2) |
| 766 | p.CFrame = CFrame.new(-3.7, 9.72, -3.7) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 767 | p.BrickColor = BrickColor.new("Lime green") |
| 768 | p.Material = Enum.Material.Neon |
| 769 | p.Anchored = true |
| 770 | p.Parent = model |
| 771 | end |
| 772 | do |
| 773 | local rightV = Vector3.new(0,0,-1).Unit |
| 774 | local upV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(rightV)*rightV).Unit |
| 775 | local normalV = upV:Cross(rightV) |
| 776 | local pos = Vector3.new(0, 9.6, 0) |
| 777 | local cyl = Instance.new("Part") |
| 778 | cyl.Shape = Enum.PartType.Cylinder |
| 779 | cyl.Size = Vector3.new(15.2, 11, 11) |
| 780 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 781 | cyl.BrickColor = BrickColor.new("Mint") |
| 782 | cyl.Material = Enum.Material.Glacier |
| 783 | cyl.MaterialVariant = "2022 Stud" |
| 784 | cyl.Anchored = true; cyl.Parent = workspace |
| 785 | local cuts = {} |
| 786 | local hole = Instance.new("Part") |
| 787 | hole.Shape = Enum.PartType.Cylinder |
| 788 | hole.Size = Vector3.new(15.4, 10.6, 10.6) |
| 789 | hole.CFrame = cyl.CFrame |
| 790 | hole.BrickColor = BrickColor.new("Mint") |
| 791 | hole.Material = Enum.Material.Glacier |
| 792 | hole.MaterialVariant = "2022 Stud" |
| 793 | hole.Anchored = true; hole.Parent = workspace |
| 794 | table.insert(cuts, hole) |
| 795 | local angBoxes = {} |
| 796 | do |
| 797 | local edgeDir = 0.707107*rightV + 0.707107*upV |
| 798 | local edgePerp = -0.707107*rightV + 0.707107*upV |
| 799 | local cut = Instance.new("Part") |
| 800 | cut.Size = Vector3.new(22, 15.4, 22) |
| 801 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 11 * edgePerp, edgeDir, normalV) |
| 802 | cut.BrickColor = BrickColor.new("Mint") |
| 803 | cut.Material = Enum.Material.Glacier |
| 804 | cut.MaterialVariant = "2022 Stud" |
| 805 | cut.Anchored = true; cut.Parent = workspace |
| 806 | table.insert(angBoxes, cut) |
| 807 | end |
| 808 | do |
| 809 | local edgeDir = 0.707107*rightV + -0.707107*upV |
| 810 | local edgePerp = 0.707107*rightV + 0.707107*upV |
| 811 | local cut = Instance.new("Part") |
| 812 | cut.Size = Vector3.new(22, 15.4, 22) |
| 813 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 11 * edgePerp, edgeDir, normalV) |
| 814 | cut.BrickColor = BrickColor.new("Mint") |
| 815 | cut.Material = Enum.Material.Glacier |
| 816 | cut.MaterialVariant = "2022 Stud" |
| 817 | cut.Anchored = true; cut.Parent = workspace |
| 818 | table.insert(angBoxes, cut) |
| 819 | end |
| 820 | do |
| 821 | local w = angBoxes[1]:IntersectAsync({angBoxes[2]}) |
| 822 | angBoxes[1]:Destroy(); angBoxes[2]:Destroy() |
| 823 | w.Anchored = true; w.Parent = workspace |
| 824 | table.insert(cuts, w) |
| 825 | end |
| 826 | if #cuts > 0 then |
| 827 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 828 | for _, c in ipairs(cuts) do c:Destroy() end |
| 829 | if ok and result then |
| 830 | cyl:Destroy() |
| 831 | result.Name = "GlassShell"; result.Anchored = true; result.Parent = model |
| 832 | else |
| 833 | cyl.Name = "GlassShell"; cyl.Parent = model |
| 834 | end |
| 835 | else |
| 836 | cyl.Name = "GlassShell"; cyl.Parent = model |
| 837 | end |
| 838 | end |
| 839 | do |
| 840 | local rightV = Vector3.new(0,0,-1).Unit |
| 841 | local upV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(rightV)*rightV).Unit |
| 842 | local normalV = upV:Cross(rightV) |
| 843 | local pos = Vector3.new(0.04, 2.4, 0) |
| 844 | local cyl = Instance.new("Part") |
| 845 | cyl.Shape = Enum.PartType.Cylinder |
| 846 | cyl.Size = Vector3.new(0.4, 11.6, 11.6) |
| 847 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 848 | cyl.BrickColor = BrickColor.new("Dark stone grey") |
| 849 | cyl.Material = Enum.Material.Glacier |
| 850 | cyl.MaterialVariant = "2022 Stud" |
| 851 | cyl.Anchored = true; cyl.Parent = workspace |
| 852 | local cuts = {} |
| 853 | local hole = Instance.new("Part") |
| 854 | hole.Shape = Enum.PartType.Cylinder |
| 855 | hole.Size = Vector3.new(0.6, 11, 11) |
| 856 | hole.CFrame = cyl.CFrame |
| 857 | hole.BrickColor = BrickColor.new("Dark stone grey") |
| 858 | hole.Material = Enum.Material.Glacier |
| 859 | hole.MaterialVariant = "2022 Stud" |
| 860 | hole.Anchored = true; hole.Parent = workspace |
| 861 | table.insert(cuts, hole) |
| 862 | local angBoxes = {} |
| 863 | do |
| 864 | local edgeDir = 1*rightV + 0*upV |
| 865 | local edgePerp = 0*rightV + 1*upV |
| 866 | local cut = Instance.new("Part") |
| 867 | cut.Size = Vector3.new(23.2, 0.6, 23.2) |
| 868 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 11.6 * edgePerp, edgeDir, normalV) |
| 869 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 870 | cut.Material = Enum.Material.Glacier |
| 871 | cut.MaterialVariant = "2022 Stud" |
| 872 | cut.Anchored = true; cut.Parent = workspace |
| 873 | table.insert(angBoxes, cut) |
| 874 | end |
| 875 | do |
| 876 | local edgeDir = -1*rightV + 0*upV |
| 877 | local edgePerp = 0*rightV + -1*upV |
| 878 | local cut = Instance.new("Part") |
| 879 | cut.Size = Vector3.new(23.2, 0.6, 23.2) |
| 880 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 11.6 * edgePerp, edgeDir, normalV) |
| 881 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 882 | cut.Material = Enum.Material.Glacier |
| 883 | cut.MaterialVariant = "2022 Stud" |
| 884 | cut.Anchored = true; cut.Parent = workspace |
| 885 | table.insert(angBoxes, cut) |
| 886 | end |
| 887 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 888 | if #cuts > 0 then |
| 889 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 890 | for _, c in ipairs(cuts) do c:Destroy() end |
| 891 | if ok and result then |
| 892 | cyl:Destroy() |
| 893 | result.Name = "CageRingBot_F"; result.Anchored = true; result.Parent = model |
| 894 | else |
| 895 | cyl.Name = "CageRingBot_F"; cyl.Parent = model |
| 896 | end |
| 897 | else |
| 898 | cyl.Name = "CageRingBot_F"; cyl.Parent = model |
| 899 | end |
| 900 | end |
| 901 | do |
| 902 | local rightV = Vector3.new(0,0,-1).Unit |
| 903 | local upV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(rightV)*rightV).Unit |
| 904 | local normalV = upV:Cross(rightV) |
| 905 | local pos = Vector3.new(0, 2.4, 0) |
| 906 | local cyl = Instance.new("Part") |
| 907 | cyl.Shape = Enum.PartType.Cylinder |
| 908 | cyl.Size = Vector3.new(0.4, 11.6, 11.6) |
| 909 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 910 | cyl.BrickColor = BrickColor.new("Dark stone grey") |
| 911 | cyl.Material = Enum.Material.Glacier |
| 912 | cyl.MaterialVariant = "2022 Stud" |
| 913 | cyl.Anchored = true; cyl.Parent = workspace |
| 914 | local cuts = {} |
| 915 | local hole = Instance.new("Part") |
| 916 | hole.Shape = Enum.PartType.Cylinder |
| 917 | hole.Size = Vector3.new(0.6, 11, 11) |
| 918 | hole.CFrame = cyl.CFrame |
| 919 | hole.BrickColor = BrickColor.new("Dark stone grey") |
| 920 | hole.Material = Enum.Material.Glacier |
| 921 | hole.MaterialVariant = "2022 Stud" |
| 922 | hole.Anchored = true; hole.Parent = workspace |
| 923 | table.insert(cuts, hole) |
| 924 | local angBoxes = {} |
| 925 | do |
| 926 | local edgeDir = -1*rightV + 0*upV |
| 927 | local edgePerp = 0*rightV + -1*upV |
| 928 | local cut = Instance.new("Part") |
| 929 | cut.Size = Vector3.new(23.2, 0.6, 23.2) |
| 930 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 11.6 * edgePerp, edgeDir, normalV) |
| 931 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 932 | cut.Material = Enum.Material.Glacier |
| 933 | cut.MaterialVariant = "2022 Stud" |
| 934 | cut.Anchored = true; cut.Parent = workspace |
| 935 | table.insert(angBoxes, cut) |
| 936 | end |
| 937 | do |
| 938 | local edgeDir = 1*rightV + 0*upV |
| 939 | local edgePerp = 0*rightV + 1*upV |
| 940 | local cut = Instance.new("Part") |
| 941 | cut.Size = Vector3.new(23.2, 0.6, 23.2) |
| 942 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 11.6 * edgePerp, edgeDir, normalV) |
| 943 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 944 | cut.Material = Enum.Material.Glacier |
| 945 | cut.MaterialVariant = "2022 Stud" |
| 946 | cut.Anchored = true; cut.Parent = workspace |
| 947 | table.insert(angBoxes, cut) |
| 948 | end |
| 949 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 950 | if #cuts > 0 then |
| 951 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 952 | for _, c in ipairs(cuts) do c:Destroy() end |
| 953 | if ok and result then |
| 954 | cyl:Destroy() |
| 955 | result.Name = "CageRingBot_B"; result.Anchored = true; result.Parent = model |
| 956 | else |
| 957 | cyl.Name = "CageRingBot_B"; cyl.Parent = model |
| 958 | end |
| 959 | else |
| 960 | cyl.Name = "CageRingBot_B"; cyl.Parent = model |
| 961 | end |
| 962 | end |
| 963 | do |
| 964 | local rightV = Vector3.new(0,0,-1).Unit |
| 965 | local upV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(rightV)*rightV).Unit |
| 966 | local normalV = upV:Cross(rightV) |
| 967 | local pos = Vector3.new(0.04, 9.68, 0) |
| 968 | local cyl = Instance.new("Part") |
| 969 | cyl.Shape = Enum.PartType.Cylinder |
| 970 | cyl.Size = Vector3.new(0.4, 11.6, 11.6) |
| 971 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 972 | cyl.BrickColor = BrickColor.new("Dark stone grey") |
| 973 | cyl.Material = Enum.Material.Glacier |
| 974 | cyl.MaterialVariant = "2022 Stud" |
| 975 | cyl.Anchored = true; cyl.Parent = workspace |
| 976 | local cuts = {} |
| 977 | local hole = Instance.new("Part") |
| 978 | hole.Shape = Enum.PartType.Cylinder |
| 979 | hole.Size = Vector3.new(0.6, 11, 11) |
| 980 | hole.CFrame = cyl.CFrame |
| 981 | hole.BrickColor = BrickColor.new("Dark stone grey") |
| 982 | hole.Material = Enum.Material.Glacier |
| 983 | hole.MaterialVariant = "2022 Stud" |
| 984 | hole.Anchored = true; hole.Parent = workspace |
| 985 | table.insert(cuts, hole) |
| 986 | local angBoxes = {} |
| 987 | do |
| 988 | local edgeDir = 1*rightV + 0*upV |
| 989 | local edgePerp = 0*rightV + 1*upV |
| 990 | local cut = Instance.new("Part") |
| 991 | cut.Size = Vector3.new(23.2, 0.6, 23.2) |
| 992 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 11.6 * edgePerp, edgeDir, normalV) |
| 993 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 994 | cut.Material = Enum.Material.Glacier |
| 995 | cut.MaterialVariant = "2022 Stud" |
| 996 | cut.Anchored = true; cut.Parent = workspace |
| 997 | table.insert(angBoxes, cut) |
| 998 | end |
| 999 | do |
| 1000 | local edgeDir = -1*rightV + 0*upV |
| 1001 | local edgePerp = 0*rightV + -1*upV |
| 1002 | local cut = Instance.new("Part") |
| 1003 | cut.Size = Vector3.new(23.2, 0.6, 23.2) |
| 1004 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 11.6 * edgePerp, edgeDir, normalV) |
| 1005 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 1006 | cut.Material = Enum.Material.Glacier |
| 1007 | cut.MaterialVariant = "2022 Stud" |
| 1008 | cut.Anchored = true; cut.Parent = workspace |
| 1009 | table.insert(angBoxes, cut) |
| 1010 | end |
| 1011 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1012 | if #cuts > 0 then |
| 1013 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1014 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1015 | if ok and result then |
| 1016 | cyl:Destroy() |
| 1017 | result.Name = "CageRingMid_F"; result.Anchored = true; result.Parent = model |
| 1018 | else |
| 1019 | cyl.Name = "CageRingMid_F"; cyl.Parent = model |
| 1020 | end |
| 1021 | else |
| 1022 | cyl.Name = "CageRingMid_F"; cyl.Parent = model |
| 1023 | end |
| 1024 | end |
| 1025 | do |
| 1026 | local rightV = Vector3.new(0,0,-1).Unit |
| 1027 | local upV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(rightV)*rightV).Unit |
| 1028 | local normalV = upV:Cross(rightV) |
| 1029 | local pos = Vector3.new(0, 9.68, 0) |
| 1030 | local cyl = Instance.new("Part") |
| 1031 | cyl.Shape = Enum.PartType.Cylinder |
| 1032 | cyl.Size = Vector3.new(0.4, 11.6, 11.6) |
| 1033 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1034 | cyl.BrickColor = BrickColor.new("Dark stone grey") |
| 1035 | cyl.Material = Enum.Material.Glacier |
| 1036 | cyl.MaterialVariant = "2022 Stud" |
| 1037 | cyl.Anchored = true; cyl.Parent = workspace |
| 1038 | local cuts = {} |
| 1039 | local hole = Instance.new("Part") |
| 1040 | hole.Shape = Enum.PartType.Cylinder |
| 1041 | hole.Size = Vector3.new(0.6, 11, 11) |
| 1042 | hole.CFrame = cyl.CFrame |
| 1043 | hole.BrickColor = BrickColor.new("Dark stone grey") |
| 1044 | hole.Material = Enum.Material.Glacier |
| 1045 | hole.MaterialVariant = "2022 Stud" |
| 1046 | hole.Anchored = true; hole.Parent = workspace |
| 1047 | table.insert(cuts, hole) |
| 1048 | local angBoxes = {} |
| 1049 | do |
| 1050 | local edgeDir = -1*rightV + 0*upV |
| 1051 | local edgePerp = 0*rightV + -1*upV |
| 1052 | local cut = Instance.new("Part") |
| 1053 | cut.Size = Vector3.new(23.2, 0.6, 23.2) |
| 1054 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 11.6 * edgePerp, edgeDir, normalV) |
| 1055 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 1056 | cut.Material = Enum.Material.Glacier |
| 1057 | cut.MaterialVariant = "2022 Stud" |
| 1058 | cut.Anchored = true; cut.Parent = workspace |
| 1059 | table.insert(angBoxes, cut) |
| 1060 | end |
| 1061 | do |
| 1062 | local edgeDir = 1*rightV + 0*upV |
| 1063 | local edgePerp = 0*rightV + 1*upV |
| 1064 | local cut = Instance.new("Part") |
| 1065 | cut.Size = Vector3.new(23.2, 0.6, 23.2) |
| 1066 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 11.6 * edgePerp, edgeDir, normalV) |
| 1067 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 1068 | cut.Material = Enum.Material.Glacier |
| 1069 | cut.MaterialVariant = "2022 Stud" |
| 1070 | cut.Anchored = true; cut.Parent = workspace |
| 1071 | table.insert(angBoxes, cut) |
| 1072 | end |
| 1073 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1074 | if #cuts > 0 then |
| 1075 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1076 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1077 | if ok and result then |
| 1078 | cyl:Destroy() |
| 1079 | result.Name = "CageRingMid_B"; result.Anchored = true; result.Parent = model |
| 1080 | else |
| 1081 | cyl.Name = "CageRingMid_B"; cyl.Parent = model |
| 1082 | end |
| 1083 | else |
| 1084 | cyl.Name = "CageRingMid_B"; cyl.Parent = model |
| 1085 | end |
| 1086 | end |
| 1087 | do |
| 1088 | local rightV = Vector3.new(0,0,-1).Unit |
| 1089 | local upV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(rightV)*rightV).Unit |
| 1090 | local normalV = upV:Cross(rightV) |
| 1091 | local pos = Vector3.new(0.04, 17.08, 0) |
| 1092 | local cyl = Instance.new("Part") |
| 1093 | cyl.Shape = Enum.PartType.Cylinder |
| 1094 | cyl.Size = Vector3.new(0.4, 11.6, 11.6) |
| 1095 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1096 | cyl.BrickColor = BrickColor.new("Dark stone grey") |
| 1097 | cyl.Material = Enum.Material.Glacier |
| 1098 | cyl.MaterialVariant = "2022 Stud" |
| 1099 | cyl.Anchored = true; cyl.Parent = workspace |
| 1100 | local cuts = {} |
| 1101 | local hole = Instance.new("Part") |
| 1102 | hole.Shape = Enum.PartType.Cylinder |
| 1103 | hole.Size = Vector3.new(0.6, 11, 11) |
| 1104 | hole.CFrame = cyl.CFrame |
| 1105 | hole.BrickColor = BrickColor.new("Dark stone grey") |
| 1106 | hole.Material = Enum.Material.Glacier |
| 1107 | hole.MaterialVariant = "2022 Stud" |
| 1108 | hole.Anchored = true; hole.Parent = workspace |
| 1109 | table.insert(cuts, hole) |
| 1110 | local angBoxes = {} |
| 1111 | do |
| 1112 | local edgeDir = 1*rightV + 0*upV |
| 1113 | local edgePerp = 0*rightV + 1*upV |
| 1114 | local cut = Instance.new("Part") |
| 1115 | cut.Size = Vector3.new(23.2, 0.6, 23.2) |
| 1116 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 11.6 * edgePerp, edgeDir, normalV) |
| 1117 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 1118 | cut.Material = Enum.Material.Glacier |
| 1119 | cut.MaterialVariant = "2022 Stud" |
| 1120 | cut.Anchored = true; cut.Parent = workspace |
| 1121 | table.insert(angBoxes, cut) |
| 1122 | end |
| 1123 | do |
| 1124 | local edgeDir = -1*rightV + 0*upV |
| 1125 | local edgePerp = 0*rightV + -1*upV |
| 1126 | local cut = Instance.new("Part") |
| 1127 | cut.Size = Vector3.new(23.2, 0.6, 23.2) |
| 1128 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 11.6 * edgePerp, edgeDir, normalV) |
| 1129 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 1130 | cut.Material = Enum.Material.Glacier |
| 1131 | cut.MaterialVariant = "2022 Stud" |
| 1132 | cut.Anchored = true; cut.Parent = workspace |
| 1133 | table.insert(angBoxes, cut) |
| 1134 | end |
| 1135 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1136 | if #cuts > 0 then |
| 1137 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1138 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1139 | if ok and result then |
| 1140 | cyl:Destroy() |
| 1141 | result.Name = "CageRingTop_F"; result.Anchored = true; result.Parent = model |
| 1142 | else |
| 1143 | cyl.Name = "CageRingTop_F"; cyl.Parent = model |
| 1144 | end |
| 1145 | else |
| 1146 | cyl.Name = "CageRingTop_F"; cyl.Parent = model |
| 1147 | end |
| 1148 | end |
| 1149 | do |
| 1150 | local rightV = Vector3.new(0,0,-1).Unit |
| 1151 | local upV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(rightV)*rightV).Unit |
| 1152 | local normalV = upV:Cross(rightV) |
| 1153 | local pos = Vector3.new(0, 17.08, 0) |
| 1154 | local cyl = Instance.new("Part") |
| 1155 | cyl.Shape = Enum.PartType.Cylinder |
| 1156 | cyl.Size = Vector3.new(0.4, 11.6, 11.6) |
| 1157 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1158 | cyl.BrickColor = BrickColor.new("Dark stone grey") |
| 1159 | cyl.Material = Enum.Material.Glacier |
| 1160 | cyl.MaterialVariant = "2022 Stud" |
| 1161 | cyl.Anchored = true; cyl.Parent = workspace |
| 1162 | local cuts = {} |
| 1163 | local hole = Instance.new("Part") |
| 1164 | hole.Shape = Enum.PartType.Cylinder |
| 1165 | hole.Size = Vector3.new(0.6, 11, 11) |
| 1166 | hole.CFrame = cyl.CFrame |
| 1167 | hole.BrickColor = BrickColor.new("Dark stone grey") |
| 1168 | hole.Material = Enum.Material.Glacier |
| 1169 | hole.MaterialVariant = "2022 Stud" |
| 1170 | hole.Anchored = true; hole.Parent = workspace |
| 1171 | table.insert(cuts, hole) |
| 1172 | local angBoxes = {} |
| 1173 | do |
| 1174 | local edgeDir = -1*rightV + 0*upV |
| 1175 | local edgePerp = 0*rightV + -1*upV |
| 1176 | local cut = Instance.new("Part") |
| 1177 | cut.Size = Vector3.new(23.2, 0.6, 23.2) |
| 1178 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 11.6 * edgePerp, edgeDir, normalV) |
| 1179 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 1180 | cut.Material = Enum.Material.Glacier |
| 1181 | cut.MaterialVariant = "2022 Stud" |
| 1182 | cut.Anchored = true; cut.Parent = workspace |
| 1183 | table.insert(angBoxes, cut) |
| 1184 | end |
| 1185 | do |
| 1186 | local edgeDir = 1*rightV + 0*upV |
| 1187 | local edgePerp = 0*rightV + 1*upV |
| 1188 | local cut = Instance.new("Part") |
| 1189 | cut.Size = Vector3.new(23.2, 0.6, 23.2) |
| 1190 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 11.6 * edgePerp, edgeDir, normalV) |
| 1191 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 1192 | cut.Material = Enum.Material.Glacier |
| 1193 | cut.MaterialVariant = "2022 Stud" |
| 1194 | cut.Anchored = true; cut.Parent = workspace |
| 1195 | table.insert(angBoxes, cut) |
| 1196 | end |
| 1197 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1198 | if #cuts > 0 then |
| 1199 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1200 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1201 | if ok and result then |
| 1202 | cyl:Destroy() |
| 1203 | result.Name = "CageRingTop_B"; result.Anchored = true; result.Parent = model |
| 1204 | else |
| 1205 | cyl.Name = "CageRingTop_B"; cyl.Parent = model |
| 1206 | end |
| 1207 | else |
| 1208 | cyl.Name = "CageRingTop_B"; cyl.Parent = model |
| 1209 | end |
| 1210 | end |
| 1211 | model.PrimaryPart = model:FindFirstChild("BottomCap1") |
| 1212 | print("SciFiBattery built: " .. #model:GetChildren() .. " parts") |
Loading comments...