Loading model...
by LovJak · 3/30/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: TimeMachineCar |
| 3 | |
| 4 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 5 | -- Model: TimeMachineCar |
| 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 = "TimeMachineCar" |
| 24 | model.Parent = workspace |
| 25 | |
| 26 | local variants = { |
| 27 | ["Bright blue"] = "2022 Universal", |
| 28 | ["Bright red"] = "2022 Stud", |
| 29 | ["Dark stone grey"] = "2022 Stud", |
| 30 | ["Institutional white"] = "2022 Stud", |
| 31 | ["Medium stone grey"] = "2022 Inlet", |
| 32 | ["Really black"] = "2022 Universal", |
| 33 | ["Silver"] = "2022 Stud", |
| 34 | ["Toothpaste"] = "2022 Stud", |
| 35 | } |
| 36 | do |
| 37 | local p = Instance.new("Part") |
| 38 | p.Name = "Chassis" |
| 39 | p.Size = Vector3.new(8, 1, 20) |
| 40 | p.CFrame = CFrame.new(0, 0.96, 0) |
| 41 | p.BrickColor = BrickColor.new("Really black") |
| 42 | p.Material = Enum.Material.Glacier |
| 43 | p.MaterialVariant = "2022 Universal" |
| 44 | p.Anchored = true |
| 45 | p.Parent = model |
| 46 | end |
| 47 | do |
| 48 | local p = Instance.new("Part") |
| 49 | p.Name = "BodyLower" |
| 50 | p.Size = Vector3.new(9, 1, 19) |
| 51 | p.CFrame = CFrame.new(0, 2, -0.5) |
| 52 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 53 | p.Material = Enum.Material.Glacier |
| 54 | p.MaterialVariant = "2022 Inlet" |
| 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 = "Tire_L_-6.5" |
| 62 | p.Size = Vector3.new(1, 2.8, 2.8) |
| 63 | p.CFrame = CFrame.new(-4.04, 1.5, -6.5) |
| 64 | p.BrickColor = BrickColor.new("Really black") |
| 65 | p.Material = Enum.Material.Glacier |
| 66 | p.MaterialVariant = "2022 Universal" |
| 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 = "Rim_L_-6.5" |
| 74 | p.Size = Vector3.new(1.05, 2, 2) |
| 75 | p.CFrame = CFrame.new(-4.1, 1.5, -6.5) |
| 76 | p.BrickColor = BrickColor.new("Silver") |
| 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 = "Tire_R_-6.5" |
| 86 | p.Size = Vector3.new(1, 2.8, 2.8) |
| 87 | p.CFrame = CFrame.new(4.04, 1.5, -6.5) |
| 88 | p.BrickColor = BrickColor.new("Really black") |
| 89 | p.Material = Enum.Material.Glacier |
| 90 | p.MaterialVariant = "2022 Universal" |
| 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 = "Rim_R_-6.5" |
| 98 | p.Size = Vector3.new(1.05, 2, 2) |
| 99 | p.CFrame = CFrame.new(4.1, 1.5, -6.5) |
| 100 | p.BrickColor = BrickColor.new("Silver") |
| 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 = "Tire_L_6.5" |
| 110 | p.Size = Vector3.new(1, 2.8, 2.8) |
| 111 | p.CFrame = CFrame.new(-4.04, 1.5, 6.5) |
| 112 | p.BrickColor = BrickColor.new("Really black") |
| 113 | p.Material = Enum.Material.Glacier |
| 114 | p.MaterialVariant = "2022 Universal" |
| 115 | p.Anchored = true |
| 116 | p.Parent = model |
| 117 | end |
| 118 | do |
| 119 | local p = Instance.new("Part") |
| 120 | p.Shape = Enum.PartType.Cylinder |
| 121 | p.Name = "Rim_L_6.5" |
| 122 | p.Size = Vector3.new(1.05, 2, 2) |
| 123 | p.CFrame = CFrame.new(-4.1, 1.5, 6.5) |
| 124 | p.BrickColor = BrickColor.new("Silver") |
| 125 | p.Material = Enum.Material.Glacier |
| 126 | p.MaterialVariant = "2022 Stud" |
| 127 | p.Anchored = true |
| 128 | p.Parent = model |
| 129 | end |
| 130 | do |
| 131 | local p = Instance.new("Part") |
| 132 | p.Shape = Enum.PartType.Cylinder |
| 133 | p.Name = "Tire_R_6.5" |
| 134 | p.Size = Vector3.new(1, 2.8, 2.8) |
| 135 | p.CFrame = CFrame.new(4.04, 1.5, 6.5) |
| 136 | p.BrickColor = BrickColor.new("Really black") |
| 137 | p.Material = Enum.Material.Glacier |
| 138 | p.MaterialVariant = "2022 Universal" |
| 139 | p.Anchored = true |
| 140 | p.Parent = model |
| 141 | end |
| 142 | do |
| 143 | local p = Instance.new("Part") |
| 144 | p.Shape = Enum.PartType.Cylinder |
| 145 | p.Name = "Rim_R_6.5" |
| 146 | p.Size = Vector3.new(1.05, 2, 2) |
| 147 | p.CFrame = CFrame.new(4.1, 1.5, 6.5) |
| 148 | p.BrickColor = BrickColor.new("Silver") |
| 149 | p.Material = Enum.Material.Glacier |
| 150 | p.MaterialVariant = "2022 Stud" |
| 151 | p.Anchored = true |
| 152 | p.Parent = model |
| 153 | end |
| 154 | do |
| 155 | local p = Instance.new("Part") |
| 156 | p.Name = "FrontBumper" |
| 157 | p.Size = Vector3.new(9, 1, 0.5) |
| 158 | p.CFrame = CFrame.new(0, 2, -10.29) |
| 159 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 160 | p.Material = Enum.Material.Glacier |
| 161 | p.MaterialVariant = "2022 Inlet" |
| 162 | p.Anchored = true |
| 163 | p.Parent = model |
| 164 | end |
| 165 | do |
| 166 | local p = Instance.new("Part") |
| 167 | p.Name = "FrontGrille" |
| 168 | p.Size = Vector3.new(8.8, 0.5, 0.5) |
| 169 | p.CFrame = CFrame.new(0, 2.79, -10.25) |
| 170 | p.BrickColor = BrickColor.new("Really black") |
| 171 | p.Material = Enum.Material.Glacier |
| 172 | p.MaterialVariant = "2022 Universal" |
| 173 | p.Anchored = true |
| 174 | p.Parent = model |
| 175 | end |
| 176 | do |
| 177 | local p = Instance.new("Part") |
| 178 | p.Name = "Headlight_L1" |
| 179 | p.Size = Vector3.new(1.2, 0.4, 0.4) |
| 180 | p.CFrame = CFrame.new(-3, 2.67, -10.38) |
| 181 | p.BrickColor = BrickColor.new("Cool yellow") |
| 182 | p.Material = Enum.Material.Neon |
| 183 | p.Anchored = true |
| 184 | p.Parent = model |
| 185 | end |
| 186 | do |
| 187 | local p = Instance.new("Part") |
| 188 | p.Name = "Headlight_L2" |
| 189 | p.Size = Vector3.new(1.2, 0.4, 0.4) |
| 190 | p.CFrame = CFrame.new(-1.5, 2.67, -10.38) |
| 191 | p.BrickColor = BrickColor.new("Cool yellow") |
| 192 | p.Material = Enum.Material.Neon |
| 193 | p.Anchored = true |
| 194 | p.Parent = model |
| 195 | end |
| 196 | do |
| 197 | local p = Instance.new("Part") |
| 198 | p.Name = "Headlight_R1" |
| 199 | p.Size = Vector3.new(1.2, 0.4, 0.4) |
| 200 | p.CFrame = CFrame.new(3, 2.67, -10.38) |
| 201 | p.BrickColor = BrickColor.new("Cool yellow") |
| 202 | p.Material = Enum.Material.Neon |
| 203 | p.Anchored = true |
| 204 | p.Parent = model |
| 205 | end |
| 206 | do |
| 207 | local p = Instance.new("Part") |
| 208 | p.Name = "Headlight_R2" |
| 209 | p.Size = Vector3.new(1.2, 0.4, 0.4) |
| 210 | p.CFrame = CFrame.new(1.5, 2.67, -10.38) |
| 211 | p.BrickColor = BrickColor.new("Cool yellow") |
| 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.Name = "FluxFrontBase" |
| 219 | p.Size = Vector3.new(9.2, 0.4, 0.2) |
| 220 | p.CFrame = CFrame.new(0, 2, -10.68) |
| 221 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 222 | p.Material = Enum.Material.Glacier |
| 223 | p.MaterialVariant = "2022 Stud" |
| 224 | p.Anchored = true |
| 225 | p.Parent = model |
| 226 | end |
| 227 | do |
| 228 | local p = Instance.new("Part") |
| 229 | p.Name = "FluxFrontGlow" |
| 230 | p.Size = Vector3.new(9.3, 0.15, 0.1) |
| 231 | p.CFrame = CFrame.new(0, 2, -10.78) |
| 232 | p.BrickColor = BrickColor.new("Toothpaste") |
| 233 | p.Material = Enum.Material.Neon |
| 234 | p.Anchored = true |
| 235 | p.Parent = model |
| 236 | end |
| 237 | do |
| 238 | local p = Instance.new("WedgePart") |
| 239 | p.Name = "Hood" |
| 240 | p.Size = Vector3.new(8.8, 1, 7) |
| 241 | p.CFrame = CFrame.new(0, 3.04, -6.5) |
| 242 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 243 | p.Material = Enum.Material.Glacier |
| 244 | p.MaterialVariant = "2022 Inlet" |
| 245 | p.Anchored = true |
| 246 | p.Parent = model |
| 247 | end |
| 248 | do |
| 249 | local p = Instance.new("WedgePart") |
| 250 | p.Name = "HoodSide_L" |
| 251 | p.Size = Vector3.new(0.1, 1, 7) |
| 252 | p.CFrame = CFrame.new(-4.57, 3.08, -6.5) |
| 253 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 254 | p.Material = Enum.Material.Glacier |
| 255 | p.MaterialVariant = "2022 Inlet" |
| 256 | p.Anchored = true |
| 257 | p.Parent = model |
| 258 | end |
| 259 | do |
| 260 | local p = Instance.new("WedgePart") |
| 261 | p.Name = "HoodSide_R" |
| 262 | p.Size = Vector3.new(0.1, 1, 7) |
| 263 | p.CFrame = CFrame.new(4.57, 3.08, -6.5) |
| 264 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 265 | p.Material = Enum.Material.Glacier |
| 266 | p.MaterialVariant = "2022 Inlet" |
| 267 | p.Anchored = true |
| 268 | p.Parent = model |
| 269 | end |
| 270 | do |
| 271 | local p = Instance.new("WedgePart") |
| 272 | p.Name = "Windshield" |
| 273 | p.Size = Vector3.new(8.8, 1, 2) |
| 274 | p.CFrame = CFrame.new(0, 4, -2) |
| 275 | p.BrickColor = BrickColor.new("Really black") |
| 276 | p.Material = Enum.Material.Glacier |
| 277 | p.MaterialVariant = "2022 Universal" |
| 278 | p.Anchored = true |
| 279 | p.Parent = model |
| 280 | end |
| 281 | do |
| 282 | local p = Instance.new("WedgePart") |
| 283 | p.Name = "A_Pillar_L" |
| 284 | p.Size = Vector3.new(0.1, 1, 2) |
| 285 | p.CFrame = CFrame.new(-4.53, 4, -2.08) |
| 286 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 287 | p.Material = Enum.Material.Glacier |
| 288 | p.MaterialVariant = "2022 Inlet" |
| 289 | p.Anchored = true |
| 290 | p.Parent = model |
| 291 | end |
| 292 | do |
| 293 | local p = Instance.new("WedgePart") |
| 294 | p.Name = "A_Pillar_R" |
| 295 | p.Size = Vector3.new(0.1, 1, 2) |
| 296 | p.CFrame = CFrame.new(4.53, 4, -2.08) |
| 297 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 298 | p.Material = Enum.Material.Glacier |
| 299 | p.MaterialVariant = "2022 Inlet" |
| 300 | p.Anchored = true |
| 301 | p.Parent = model |
| 302 | end |
| 303 | do |
| 304 | local p = Instance.new("Part") |
| 305 | p.Name = "Roof" |
| 306 | p.Size = Vector3.new(8.8, 0.2, 4) |
| 307 | p.CFrame = CFrame.new(0, 4.6, 1) |
| 308 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 309 | p.Material = Enum.Material.Glacier |
| 310 | p.MaterialVariant = "2022 Inlet" |
| 311 | p.Anchored = true |
| 312 | p.Parent = model |
| 313 | end |
| 314 | do |
| 315 | local p = Instance.new("Part") |
| 316 | p.Name = "RoofSide_L" |
| 317 | p.Size = Vector3.new(0.1, 0.2, 4) |
| 318 | p.CFrame = CFrame.new(-4.53, 4.68, 1) |
| 319 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 320 | p.Material = Enum.Material.Glacier |
| 321 | p.MaterialVariant = "2022 Inlet" |
| 322 | p.Anchored = true |
| 323 | p.Parent = model |
| 324 | end |
| 325 | do |
| 326 | local p = Instance.new("Part") |
| 327 | p.Name = "RoofSide_R" |
| 328 | p.Size = Vector3.new(0.1, 0.2, 4) |
| 329 | p.CFrame = CFrame.new(4.53, 4.68, 1) |
| 330 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 331 | p.Material = Enum.Material.Glacier |
| 332 | p.MaterialVariant = "2022 Inlet" |
| 333 | p.Anchored = true |
| 334 | p.Parent = model |
| 335 | end |
| 336 | do |
| 337 | local p = Instance.new("Part") |
| 338 | p.Name = "SideWindow_L" |
| 339 | p.Size = Vector3.new(0.1, 1, 4) |
| 340 | p.CFrame = CFrame.new(-4.45, 4, 1) |
| 341 | p.BrickColor = BrickColor.new("Really black") |
| 342 | p.Material = Enum.Material.Glacier |
| 343 | p.MaterialVariant = "2022 Universal" |
| 344 | p.Anchored = true |
| 345 | p.Parent = model |
| 346 | end |
| 347 | do |
| 348 | local p = Instance.new("Part") |
| 349 | p.Name = "SideWindow_R" |
| 350 | p.Size = Vector3.new(0.1, 1, 4) |
| 351 | p.CFrame = CFrame.new(4.45, 4, 1) |
| 352 | p.BrickColor = BrickColor.new("Really black") |
| 353 | p.Material = Enum.Material.Glacier |
| 354 | p.MaterialVariant = "2022 Universal" |
| 355 | p.Anchored = true |
| 356 | p.Parent = model |
| 357 | end |
| 358 | do |
| 359 | local p = Instance.new("WedgePart") |
| 360 | p.Name = "RearWindow" |
| 361 | p.Size = Vector3.new(8.8, 1, 2) |
| 362 | p.CFrame = CFrame.new(0, 4, 4) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(0)) |
| 363 | p.BrickColor = BrickColor.new("Really black") |
| 364 | p.Material = Enum.Material.Glacier |
| 365 | p.MaterialVariant = "2022 Universal" |
| 366 | p.Anchored = true |
| 367 | p.Parent = model |
| 368 | end |
| 369 | do |
| 370 | local p = Instance.new("WedgePart") |
| 371 | p.Name = "C_Pillar_L" |
| 372 | p.Size = Vector3.new(0.1, 1, 2) |
| 373 | p.CFrame = CFrame.new(-4.57, 4, 4.08) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(0)) |
| 374 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 375 | p.Material = Enum.Material.Glacier |
| 376 | p.MaterialVariant = "2022 Inlet" |
| 377 | p.Anchored = true |
| 378 | p.Parent = model |
| 379 | end |
| 380 | do |
| 381 | local p = Instance.new("WedgePart") |
| 382 | p.Name = "C_Pillar_R" |
| 383 | p.Size = Vector3.new(0.1, 1, 2) |
| 384 | p.CFrame = CFrame.new(4.57, 4, 4.08) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(0)) |
| 385 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 386 | p.Material = Enum.Material.Glacier |
| 387 | p.MaterialVariant = "2022 Inlet" |
| 388 | p.Anchored = true |
| 389 | p.Parent = model |
| 390 | end |
| 391 | do |
| 392 | local p = Instance.new("WedgePart") |
| 393 | p.Name = "RearDeck" |
| 394 | p.Size = Vector3.new(8.8, 1, 4) |
| 395 | p.CFrame = CFrame.new(0, 3.04, 7) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(0)) |
| 396 | p.BrickColor = BrickColor.new("Really black") |
| 397 | p.Material = Enum.Material.Glacier |
| 398 | p.MaterialVariant = "2022 Universal" |
| 399 | p.Anchored = true |
| 400 | p.Parent = model |
| 401 | end |
| 402 | do |
| 403 | local p = Instance.new("WedgePart") |
| 404 | p.Name = "RearDeckSide_L" |
| 405 | p.Size = Vector3.new(0.1, 1, 4) |
| 406 | p.CFrame = CFrame.new(-4.57, 3.08, 7) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(0)) |
| 407 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 408 | p.Material = Enum.Material.Glacier |
| 409 | p.MaterialVariant = "2022 Inlet" |
| 410 | p.Anchored = true |
| 411 | p.Parent = model |
| 412 | end |
| 413 | do |
| 414 | local p = Instance.new("WedgePart") |
| 415 | p.Name = "RearDeckSide_R" |
| 416 | p.Size = Vector3.new(0.1, 1, 4) |
| 417 | p.CFrame = CFrame.new(4.57, 3.08, 7) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(0)) |
| 418 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 419 | p.Material = Enum.Material.Glacier |
| 420 | p.MaterialVariant = "2022 Inlet" |
| 421 | p.Anchored = true |
| 422 | p.Parent = model |
| 423 | end |
| 424 | do |
| 425 | local p = Instance.new("Part") |
| 426 | p.Name = "RearBumper" |
| 427 | p.Size = Vector3.new(9, 1, 1) |
| 428 | p.CFrame = CFrame.new(0, 2.04, 9.54) |
| 429 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 430 | p.Material = Enum.Material.Glacier |
| 431 | p.MaterialVariant = "2022 Inlet" |
| 432 | p.Anchored = true |
| 433 | p.Parent = model |
| 434 | end |
| 435 | do |
| 436 | local p = Instance.new("Part") |
| 437 | p.Name = "TaillightBase" |
| 438 | p.Size = Vector3.new(8.8, 0.5, 1) |
| 439 | p.CFrame = CFrame.new(0, 2.83, 9.5) |
| 440 | p.BrickColor = BrickColor.new("Really black") |
| 441 | p.Material = Enum.Material.Glacier |
| 442 | p.MaterialVariant = "2022 Universal" |
| 443 | p.Anchored = true |
| 444 | p.Parent = model |
| 445 | end |
| 446 | do |
| 447 | local p = Instance.new("Part") |
| 448 | p.Name = "Taillight_L" |
| 449 | p.Size = Vector3.new(3, 0.4, 0.2) |
| 450 | p.CFrame = CFrame.new(-2.5, 2.83, 10) |
| 451 | p.BrickColor = BrickColor.new("Bright red") |
| 452 | p.Material = Enum.Material.Neon |
| 453 | p.Anchored = true |
| 454 | p.Parent = model |
| 455 | end |
| 456 | do |
| 457 | local p = Instance.new("Part") |
| 458 | p.Name = "Taillight_R" |
| 459 | p.Size = Vector3.new(3, 0.4, 0.2) |
| 460 | p.CFrame = CFrame.new(2.5, 2.83, 10) |
| 461 | p.BrickColor = BrickColor.new("Bright red") |
| 462 | p.Material = Enum.Material.Neon |
| 463 | p.Anchored = true |
| 464 | p.Parent = model |
| 465 | end |
| 466 | do |
| 467 | local p = Instance.new("WedgePart") |
| 468 | p.Name = "RearVent_L" |
| 469 | p.Size = Vector3.new(2, 1, 3) |
| 470 | p.CFrame = CFrame.new(-3, 3.5, 7) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(0)) |
| 471 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 472 | p.Material = Enum.Material.Glacier |
| 473 | p.MaterialVariant = "2022 Stud" |
| 474 | p.Anchored = true |
| 475 | p.Parent = model |
| 476 | end |
| 477 | do |
| 478 | local p = Instance.new("WedgePart") |
| 479 | p.Name = "RearVent_R" |
| 480 | p.Size = Vector3.new(2, 1, 3) |
| 481 | p.CFrame = CFrame.new(3, 3.5, 7) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(0)) |
| 482 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 483 | p.Material = Enum.Material.Glacier |
| 484 | p.MaterialVariant = "2022 Stud" |
| 485 | p.Anchored = true |
| 486 | p.Parent = model |
| 487 | end |
| 488 | do |
| 489 | local p = Instance.new("Part") |
| 490 | p.Shape = Enum.PartType.Cylinder |
| 491 | p.Name = "ReactorBase" |
| 492 | p.Size = Vector3.new(1, 1.5, 1.5) |
| 493 | p.CFrame = CFrame.new(0, 3.62, 8.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 494 | p.BrickColor = BrickColor.new("Really black") |
| 495 | p.Material = Enum.Material.Glacier |
| 496 | p.MaterialVariant = "2022 Universal" |
| 497 | p.Anchored = true |
| 498 | p.Parent = model |
| 499 | end |
| 500 | do |
| 501 | local p = Instance.new("Part") |
| 502 | p.Shape = Enum.PartType.Cylinder |
| 503 | p.Name = "ReactorTop" |
| 504 | p.Size = Vector3.new(0.5, 1, 1) |
| 505 | p.CFrame = CFrame.new(0, 4.41, 8.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 506 | p.BrickColor = BrickColor.new("Institutional white") |
| 507 | p.Material = Enum.Material.Glacier |
| 508 | p.MaterialVariant = "2022 Stud" |
| 509 | p.Anchored = true |
| 510 | p.Parent = model |
| 511 | end |
| 512 | do |
| 513 | local p = Instance.new("Part") |
| 514 | p.Shape = Enum.PartType.Cylinder |
| 515 | p.Name = "DeckCable_Blue" |
| 516 | p.Size = Vector3.new(4, 0.3, 0.3) |
| 517 | p.CFrame = CFrame.new(-1.5, 3.5, 6) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 518 | p.BrickColor = BrickColor.new("Bright blue") |
| 519 | p.Material = Enum.Material.Glacier |
| 520 | p.MaterialVariant = "2022 Universal" |
| 521 | p.Anchored = true |
| 522 | p.Parent = model |
| 523 | end |
| 524 | do |
| 525 | local p = Instance.new("Part") |
| 526 | p.Shape = Enum.PartType.Cylinder |
| 527 | p.Name = "DeckCable_Red" |
| 528 | p.Size = Vector3.new(4, 0.3, 0.3) |
| 529 | p.CFrame = CFrame.new(1.5, 3.5, 6) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 530 | p.BrickColor = BrickColor.new("Bright red") |
| 531 | p.Material = Enum.Material.Glacier |
| 532 | p.MaterialVariant = "2022 Stud" |
| 533 | p.Anchored = true |
| 534 | p.Parent = model |
| 535 | end |
| 536 | do |
| 537 | local p = Instance.new("Part") |
| 538 | p.Name = "RoofBox" |
| 539 | p.Size = Vector3.new(5, 0.4, 3) |
| 540 | p.CFrame = CFrame.new(0, 4.8, 1) |
| 541 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 542 | p.Material = Enum.Material.Glacier |
| 543 | p.MaterialVariant = "2022 Stud" |
| 544 | p.Anchored = true |
| 545 | p.Parent = model |
| 546 | end |
| 547 | do |
| 548 | local p = Instance.new("Part") |
| 549 | p.Shape = Enum.PartType.Cylinder |
| 550 | p.Name = "RoofCyl" |
| 551 | p.Size = Vector3.new(2.5, 0.5, 0.5) |
| 552 | p.CFrame = CFrame.new(0, 5.2, 1) |
| 553 | p.BrickColor = BrickColor.new("Really black") |
| 554 | p.Material = Enum.Material.Glacier |
| 555 | p.MaterialVariant = "2022 Universal" |
| 556 | p.Anchored = true |
| 557 | p.Parent = model |
| 558 | end |
| 559 | do |
| 560 | local p = Instance.new("Part") |
| 561 | p.Name = "FluxSideBase_L" |
| 562 | p.Size = Vector3.new(0.1, 0.3, 12) |
| 563 | p.CFrame = CFrame.new(-4.67, 1.5, -0.5) |
| 564 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 565 | p.Material = Enum.Material.Glacier |
| 566 | p.MaterialVariant = "2022 Stud" |
| 567 | p.Anchored = true |
| 568 | p.Parent = model |
| 569 | end |
| 570 | do |
| 571 | local p = Instance.new("Part") |
| 572 | p.Name = "FluxSideGlow_L" |
| 573 | p.Size = Vector3.new(0.1, 0.15, 12) |
| 574 | p.CFrame = CFrame.new(-4.77, 1.5, -0.5) |
| 575 | p.BrickColor = BrickColor.new("Toothpaste") |
| 576 | p.Material = Enum.Material.Neon |
| 577 | p.Anchored = true |
| 578 | p.Parent = model |
| 579 | end |
| 580 | do |
| 581 | local p = Instance.new("Part") |
| 582 | p.Name = "FluxSideBase_R" |
| 583 | p.Size = Vector3.new(0.1, 0.3, 12) |
| 584 | p.CFrame = CFrame.new(4.67, 1.5, -0.5) |
| 585 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 586 | p.Material = Enum.Material.Glacier |
| 587 | p.MaterialVariant = "2022 Stud" |
| 588 | p.Anchored = true |
| 589 | p.Parent = model |
| 590 | end |
| 591 | do |
| 592 | local p = Instance.new("Part") |
| 593 | p.Name = "FluxSideGlow_R" |
| 594 | p.Size = Vector3.new(0.1, 0.15, 12) |
| 595 | p.CFrame = CFrame.new(4.77, 1.5, -0.5) |
| 596 | p.BrickColor = BrickColor.new("Toothpaste") |
| 597 | p.Material = Enum.Material.Neon |
| 598 | p.Anchored = true |
| 599 | p.Parent = model |
| 600 | end |
| 601 | do |
| 602 | local rightV = Vector3.new(0,0,-1).Unit |
| 603 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 604 | local normalV = upV:Cross(rightV) |
| 605 | local pos = Vector3.new(-4.78, 1.46, -6.5) |
| 606 | local cyl = Instance.new("Part") |
| 607 | cyl.Shape = Enum.PartType.Cylinder |
| 608 | cyl.Size = Vector3.new(0.2, 4, 4) |
| 609 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 610 | cyl.BrickColor = BrickColor.new("Dark stone grey") |
| 611 | cyl.Material = Enum.Material.Glacier |
| 612 | cyl.MaterialVariant = "2022 Stud" |
| 613 | cyl.Anchored = true; cyl.Parent = workspace |
| 614 | local cuts = {} |
| 615 | local hole = Instance.new("Part") |
| 616 | hole.Shape = Enum.PartType.Cylinder |
| 617 | hole.Size = Vector3.new(0.4, 3.6, 3.6) |
| 618 | hole.CFrame = cyl.CFrame |
| 619 | hole.BrickColor = BrickColor.new("Dark stone grey") |
| 620 | hole.Material = Enum.Material.Glacier |
| 621 | hole.MaterialVariant = "2022 Stud" |
| 622 | hole.Anchored = true; hole.Parent = workspace |
| 623 | table.insert(cuts, hole) |
| 624 | local angBoxes = {} |
| 625 | do |
| 626 | local edgeDir = 1*rightV + 0*upV |
| 627 | local edgePerp = 0*rightV + 1*upV |
| 628 | local cut = Instance.new("Part") |
| 629 | cut.Size = Vector3.new(8, 0.4, 8) |
| 630 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4 * edgePerp, edgeDir, normalV) |
| 631 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 632 | cut.Material = Enum.Material.Glacier |
| 633 | cut.MaterialVariant = "2022 Stud" |
| 634 | cut.Anchored = true; cut.Parent = workspace |
| 635 | table.insert(angBoxes, cut) |
| 636 | end |
| 637 | do |
| 638 | local edgeDir = -1*rightV + 0*upV |
| 639 | local edgePerp = 0*rightV + -1*upV |
| 640 | local cut = Instance.new("Part") |
| 641 | cut.Size = Vector3.new(8, 0.4, 8) |
| 642 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4 * edgePerp, edgeDir, normalV) |
| 643 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 644 | cut.Material = Enum.Material.Glacier |
| 645 | cut.MaterialVariant = "2022 Stud" |
| 646 | cut.Anchored = true; cut.Parent = workspace |
| 647 | table.insert(angBoxes, cut) |
| 648 | end |
| 649 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 650 | if #cuts > 0 then |
| 651 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 652 | for _, c in ipairs(cuts) do c:Destroy() end |
| 653 | if ok and result then |
| 654 | cyl:Destroy() |
| 655 | result.Name = "Arch_FL"; result.Anchored = true; result.Parent = model |
| 656 | else |
| 657 | cyl.Name = "Arch_FL"; cyl.Parent = model |
| 658 | end |
| 659 | else |
| 660 | cyl.Name = "Arch_FL"; cyl.Parent = model |
| 661 | end |
| 662 | end |
| 663 | do |
| 664 | local rightV = Vector3.new(0,0,-1).Unit |
| 665 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 666 | local normalV = upV:Cross(rightV) |
| 667 | local pos = Vector3.new(-4.47, 1.58, -6.5) |
| 668 | local cyl = Instance.new("Part") |
| 669 | cyl.Shape = Enum.PartType.Cylinder |
| 670 | cyl.Size = Vector3.new(0.2, 3.9, 3.9) |
| 671 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 672 | cyl.BrickColor = BrickColor.new("Toothpaste") |
| 673 | cyl.Material = Enum.Material.Glacier |
| 674 | cyl.MaterialVariant = "2022 Stud" |
| 675 | cyl.Anchored = true; cyl.Parent = workspace |
| 676 | local cuts = {} |
| 677 | local hole = Instance.new("Part") |
| 678 | hole.Shape = Enum.PartType.Cylinder |
| 679 | hole.Size = Vector3.new(0.4, 3.7, 3.7) |
| 680 | hole.CFrame = cyl.CFrame |
| 681 | hole.BrickColor = BrickColor.new("Toothpaste") |
| 682 | hole.Material = Enum.Material.Glacier |
| 683 | hole.MaterialVariant = "2022 Stud" |
| 684 | hole.Anchored = true; hole.Parent = workspace |
| 685 | table.insert(cuts, hole) |
| 686 | local angBoxes = {} |
| 687 | do |
| 688 | local edgeDir = 1*rightV + 0*upV |
| 689 | local edgePerp = 0*rightV + 1*upV |
| 690 | local cut = Instance.new("Part") |
| 691 | cut.Size = Vector3.new(7.8, 0.4, 7.8) |
| 692 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 3.9 * edgePerp, edgeDir, normalV) |
| 693 | cut.BrickColor = BrickColor.new("Toothpaste") |
| 694 | cut.Material = Enum.Material.Glacier |
| 695 | cut.MaterialVariant = "2022 Stud" |
| 696 | cut.Anchored = true; cut.Parent = workspace |
| 697 | table.insert(angBoxes, cut) |
| 698 | end |
| 699 | do |
| 700 | local edgeDir = -1*rightV + 0*upV |
| 701 | local edgePerp = 0*rightV + -1*upV |
| 702 | local cut = Instance.new("Part") |
| 703 | cut.Size = Vector3.new(7.8, 0.4, 7.8) |
| 704 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 3.9 * edgePerp, edgeDir, normalV) |
| 705 | cut.BrickColor = BrickColor.new("Toothpaste") |
| 706 | cut.Material = Enum.Material.Glacier |
| 707 | cut.MaterialVariant = "2022 Stud" |
| 708 | cut.Anchored = true; cut.Parent = workspace |
| 709 | table.insert(angBoxes, cut) |
| 710 | end |
| 711 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 712 | if #cuts > 0 then |
| 713 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 714 | for _, c in ipairs(cuts) do c:Destroy() end |
| 715 | if ok and result then |
| 716 | cyl:Destroy() |
| 717 | result.Name = "ArchGlow_FL"; result.Anchored = true; result.Parent = model |
| 718 | else |
| 719 | cyl.Name = "ArchGlow_FL"; cyl.Parent = model |
| 720 | end |
| 721 | else |
| 722 | cyl.Name = "ArchGlow_FL"; cyl.Parent = model |
| 723 | end |
| 724 | end |
| 725 | do |
| 726 | local rightV = Vector3.new(0,0,-1).Unit |
| 727 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 728 | local normalV = upV:Cross(rightV) |
| 729 | local pos = Vector3.new(-4.78, 1.46, 6.5) |
| 730 | local cyl = Instance.new("Part") |
| 731 | cyl.Shape = Enum.PartType.Cylinder |
| 732 | cyl.Size = Vector3.new(0.2, 4, 4) |
| 733 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 734 | cyl.BrickColor = BrickColor.new("Dark stone grey") |
| 735 | cyl.Material = Enum.Material.Glacier |
| 736 | cyl.MaterialVariant = "2022 Stud" |
| 737 | cyl.Anchored = true; cyl.Parent = workspace |
| 738 | local cuts = {} |
| 739 | local hole = Instance.new("Part") |
| 740 | hole.Shape = Enum.PartType.Cylinder |
| 741 | hole.Size = Vector3.new(0.4, 3.6, 3.6) |
| 742 | hole.CFrame = cyl.CFrame |
| 743 | hole.BrickColor = BrickColor.new("Dark stone grey") |
| 744 | hole.Material = Enum.Material.Glacier |
| 745 | hole.MaterialVariant = "2022 Stud" |
| 746 | hole.Anchored = true; hole.Parent = workspace |
| 747 | table.insert(cuts, hole) |
| 748 | local angBoxes = {} |
| 749 | do |
| 750 | local edgeDir = 1*rightV + 0*upV |
| 751 | local edgePerp = 0*rightV + 1*upV |
| 752 | local cut = Instance.new("Part") |
| 753 | cut.Size = Vector3.new(8, 0.4, 8) |
| 754 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4 * edgePerp, edgeDir, normalV) |
| 755 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 756 | cut.Material = Enum.Material.Glacier |
| 757 | cut.MaterialVariant = "2022 Stud" |
| 758 | cut.Anchored = true; cut.Parent = workspace |
| 759 | table.insert(angBoxes, cut) |
| 760 | end |
| 761 | do |
| 762 | local edgeDir = -1*rightV + 0*upV |
| 763 | local edgePerp = 0*rightV + -1*upV |
| 764 | local cut = Instance.new("Part") |
| 765 | cut.Size = Vector3.new(8, 0.4, 8) |
| 766 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4 * edgePerp, edgeDir, normalV) |
| 767 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 768 | cut.Material = Enum.Material.Glacier |
| 769 | cut.MaterialVariant = "2022 Stud" |
| 770 | cut.Anchored = true; cut.Parent = workspace |
| 771 | table.insert(angBoxes, cut) |
| 772 | end |
| 773 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 774 | if #cuts > 0 then |
| 775 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 776 | for _, c in ipairs(cuts) do c:Destroy() end |
| 777 | if ok and result then |
| 778 | cyl:Destroy() |
| 779 | result.Name = "Arch_RL"; result.Anchored = true; result.Parent = model |
| 780 | else |
| 781 | cyl.Name = "Arch_RL"; cyl.Parent = model |
| 782 | end |
| 783 | else |
| 784 | cyl.Name = "Arch_RL"; cyl.Parent = model |
| 785 | end |
| 786 | end |
| 787 | do |
| 788 | local rightV = Vector3.new(0,0,-1).Unit |
| 789 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 790 | local normalV = upV:Cross(rightV) |
| 791 | local pos = Vector3.new(-4.47, 1.58, 6.5) |
| 792 | local cyl = Instance.new("Part") |
| 793 | cyl.Shape = Enum.PartType.Cylinder |
| 794 | cyl.Size = Vector3.new(0.2, 3.9, 3.9) |
| 795 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 796 | cyl.BrickColor = BrickColor.new("Toothpaste") |
| 797 | cyl.Material = Enum.Material.Glacier |
| 798 | cyl.MaterialVariant = "2022 Stud" |
| 799 | cyl.Anchored = true; cyl.Parent = workspace |
| 800 | local cuts = {} |
| 801 | local hole = Instance.new("Part") |
| 802 | hole.Shape = Enum.PartType.Cylinder |
| 803 | hole.Size = Vector3.new(0.4, 3.7, 3.7) |
| 804 | hole.CFrame = cyl.CFrame |
| 805 | hole.BrickColor = BrickColor.new("Toothpaste") |
| 806 | hole.Material = Enum.Material.Glacier |
| 807 | hole.MaterialVariant = "2022 Stud" |
| 808 | hole.Anchored = true; hole.Parent = workspace |
| 809 | table.insert(cuts, hole) |
| 810 | local angBoxes = {} |
| 811 | do |
| 812 | local edgeDir = 1*rightV + 0*upV |
| 813 | local edgePerp = 0*rightV + 1*upV |
| 814 | local cut = Instance.new("Part") |
| 815 | cut.Size = Vector3.new(7.8, 0.4, 7.8) |
| 816 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 3.9 * edgePerp, edgeDir, normalV) |
| 817 | cut.BrickColor = BrickColor.new("Toothpaste") |
| 818 | cut.Material = Enum.Material.Glacier |
| 819 | cut.MaterialVariant = "2022 Stud" |
| 820 | cut.Anchored = true; cut.Parent = workspace |
| 821 | table.insert(angBoxes, cut) |
| 822 | end |
| 823 | do |
| 824 | local edgeDir = -1*rightV + 0*upV |
| 825 | local edgePerp = 0*rightV + -1*upV |
| 826 | local cut = Instance.new("Part") |
| 827 | cut.Size = Vector3.new(7.8, 0.4, 7.8) |
| 828 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 3.9 * edgePerp, edgeDir, normalV) |
| 829 | cut.BrickColor = BrickColor.new("Toothpaste") |
| 830 | cut.Material = Enum.Material.Glacier |
| 831 | cut.MaterialVariant = "2022 Stud" |
| 832 | cut.Anchored = true; cut.Parent = workspace |
| 833 | table.insert(angBoxes, cut) |
| 834 | end |
| 835 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 836 | if #cuts > 0 then |
| 837 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 838 | for _, c in ipairs(cuts) do c:Destroy() end |
| 839 | if ok and result then |
| 840 | cyl:Destroy() |
| 841 | result.Name = "ArchGlow_RL"; result.Anchored = true; result.Parent = model |
| 842 | else |
| 843 | cyl.Name = "ArchGlow_RL"; cyl.Parent = model |
| 844 | end |
| 845 | else |
| 846 | cyl.Name = "ArchGlow_RL"; cyl.Parent = model |
| 847 | end |
| 848 | end |
| 849 | do |
| 850 | local rightV = Vector3.new(0,0,1).Unit |
| 851 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 852 | local normalV = upV:Cross(rightV) |
| 853 | local pos = Vector3.new(4.98, 1.46, -6.5) |
| 854 | local cyl = Instance.new("Part") |
| 855 | cyl.Shape = Enum.PartType.Cylinder |
| 856 | cyl.Size = Vector3.new(0.2, 4, 4) |
| 857 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 858 | cyl.BrickColor = BrickColor.new("Dark stone grey") |
| 859 | cyl.Material = Enum.Material.Glacier |
| 860 | cyl.MaterialVariant = "2022 Stud" |
| 861 | cyl.Anchored = true; cyl.Parent = workspace |
| 862 | local cuts = {} |
| 863 | local hole = Instance.new("Part") |
| 864 | hole.Shape = Enum.PartType.Cylinder |
| 865 | hole.Size = Vector3.new(0.4, 3.6, 3.6) |
| 866 | hole.CFrame = cyl.CFrame |
| 867 | hole.BrickColor = BrickColor.new("Dark stone grey") |
| 868 | hole.Material = Enum.Material.Glacier |
| 869 | hole.MaterialVariant = "2022 Stud" |
| 870 | hole.Anchored = true; hole.Parent = workspace |
| 871 | table.insert(cuts, hole) |
| 872 | local angBoxes = {} |
| 873 | do |
| 874 | local edgeDir = 1*rightV + 0*upV |
| 875 | local edgePerp = 0*rightV + 1*upV |
| 876 | local cut = Instance.new("Part") |
| 877 | cut.Size = Vector3.new(8, 0.4, 8) |
| 878 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4 * edgePerp, edgeDir, normalV) |
| 879 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 880 | cut.Material = Enum.Material.Glacier |
| 881 | cut.MaterialVariant = "2022 Stud" |
| 882 | cut.Anchored = true; cut.Parent = workspace |
| 883 | table.insert(angBoxes, cut) |
| 884 | end |
| 885 | do |
| 886 | local edgeDir = -1*rightV + 0*upV |
| 887 | local edgePerp = 0*rightV + -1*upV |
| 888 | local cut = Instance.new("Part") |
| 889 | cut.Size = Vector3.new(8, 0.4, 8) |
| 890 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4 * edgePerp, edgeDir, normalV) |
| 891 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 892 | cut.Material = Enum.Material.Glacier |
| 893 | cut.MaterialVariant = "2022 Stud" |
| 894 | cut.Anchored = true; cut.Parent = workspace |
| 895 | table.insert(angBoxes, cut) |
| 896 | end |
| 897 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 898 | if #cuts > 0 then |
| 899 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 900 | for _, c in ipairs(cuts) do c:Destroy() end |
| 901 | if ok and result then |
| 902 | cyl:Destroy() |
| 903 | result.Name = "Arch_FR"; result.Anchored = true; result.Parent = model |
| 904 | else |
| 905 | cyl.Name = "Arch_FR"; cyl.Parent = model |
| 906 | end |
| 907 | else |
| 908 | cyl.Name = "Arch_FR"; cyl.Parent = model |
| 909 | end |
| 910 | end |
| 911 | do |
| 912 | local rightV = Vector3.new(0,0,1).Unit |
| 913 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 914 | local normalV = upV:Cross(rightV) |
| 915 | local pos = Vector3.new(4.67, 1.58, -6.5) |
| 916 | local cyl = Instance.new("Part") |
| 917 | cyl.Shape = Enum.PartType.Cylinder |
| 918 | cyl.Size = Vector3.new(0.2, 3.9, 3.9) |
| 919 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 920 | cyl.BrickColor = BrickColor.new("Toothpaste") |
| 921 | cyl.Material = Enum.Material.Glacier |
| 922 | cyl.MaterialVariant = "2022 Stud" |
| 923 | cyl.Anchored = true; cyl.Parent = workspace |
| 924 | local cuts = {} |
| 925 | local hole = Instance.new("Part") |
| 926 | hole.Shape = Enum.PartType.Cylinder |
| 927 | hole.Size = Vector3.new(0.4, 3.7, 3.7) |
| 928 | hole.CFrame = cyl.CFrame |
| 929 | hole.BrickColor = BrickColor.new("Toothpaste") |
| 930 | hole.Material = Enum.Material.Glacier |
| 931 | hole.MaterialVariant = "2022 Stud" |
| 932 | hole.Anchored = true; hole.Parent = workspace |
| 933 | table.insert(cuts, hole) |
| 934 | local angBoxes = {} |
| 935 | do |
| 936 | local edgeDir = 1*rightV + 0*upV |
| 937 | local edgePerp = 0*rightV + 1*upV |
| 938 | local cut = Instance.new("Part") |
| 939 | cut.Size = Vector3.new(7.8, 0.4, 7.8) |
| 940 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 3.9 * edgePerp, edgeDir, normalV) |
| 941 | cut.BrickColor = BrickColor.new("Toothpaste") |
| 942 | cut.Material = Enum.Material.Glacier |
| 943 | cut.MaterialVariant = "2022 Stud" |
| 944 | cut.Anchored = true; cut.Parent = workspace |
| 945 | table.insert(angBoxes, cut) |
| 946 | end |
| 947 | do |
| 948 | local edgeDir = -1*rightV + 0*upV |
| 949 | local edgePerp = 0*rightV + -1*upV |
| 950 | local cut = Instance.new("Part") |
| 951 | cut.Size = Vector3.new(7.8, 0.4, 7.8) |
| 952 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 3.9 * edgePerp, edgeDir, normalV) |
| 953 | cut.BrickColor = BrickColor.new("Toothpaste") |
| 954 | cut.Material = Enum.Material.Glacier |
| 955 | cut.MaterialVariant = "2022 Stud" |
| 956 | cut.Anchored = true; cut.Parent = workspace |
| 957 | table.insert(angBoxes, cut) |
| 958 | end |
| 959 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 960 | if #cuts > 0 then |
| 961 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 962 | for _, c in ipairs(cuts) do c:Destroy() end |
| 963 | if ok and result then |
| 964 | cyl:Destroy() |
| 965 | result.Name = "ArchGlow_FR"; result.Anchored = true; result.Parent = model |
| 966 | else |
| 967 | cyl.Name = "ArchGlow_FR"; cyl.Parent = model |
| 968 | end |
| 969 | else |
| 970 | cyl.Name = "ArchGlow_FR"; cyl.Parent = model |
| 971 | end |
| 972 | end |
| 973 | do |
| 974 | local rightV = Vector3.new(0,0,1).Unit |
| 975 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 976 | local normalV = upV:Cross(rightV) |
| 977 | local pos = Vector3.new(4.98, 1.46, 6.5) |
| 978 | local cyl = Instance.new("Part") |
| 979 | cyl.Shape = Enum.PartType.Cylinder |
| 980 | cyl.Size = Vector3.new(0.2, 4, 4) |
| 981 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 982 | cyl.BrickColor = BrickColor.new("Dark stone grey") |
| 983 | cyl.Material = Enum.Material.Glacier |
| 984 | cyl.MaterialVariant = "2022 Stud" |
| 985 | cyl.Anchored = true; cyl.Parent = workspace |
| 986 | local cuts = {} |
| 987 | local hole = Instance.new("Part") |
| 988 | hole.Shape = Enum.PartType.Cylinder |
| 989 | hole.Size = Vector3.new(0.4, 3.6, 3.6) |
| 990 | hole.CFrame = cyl.CFrame |
| 991 | hole.BrickColor = BrickColor.new("Dark stone grey") |
| 992 | hole.Material = Enum.Material.Glacier |
| 993 | hole.MaterialVariant = "2022 Stud" |
| 994 | hole.Anchored = true; hole.Parent = workspace |
| 995 | table.insert(cuts, hole) |
| 996 | local angBoxes = {} |
| 997 | do |
| 998 | local edgeDir = 1*rightV + 0*upV |
| 999 | local edgePerp = 0*rightV + 1*upV |
| 1000 | local cut = Instance.new("Part") |
| 1001 | cut.Size = Vector3.new(8, 0.4, 8) |
| 1002 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4 * edgePerp, edgeDir, normalV) |
| 1003 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 1004 | cut.Material = Enum.Material.Glacier |
| 1005 | cut.MaterialVariant = "2022 Stud" |
| 1006 | cut.Anchored = true; cut.Parent = workspace |
| 1007 | table.insert(angBoxes, cut) |
| 1008 | end |
| 1009 | do |
| 1010 | local edgeDir = -1*rightV + 0*upV |
| 1011 | local edgePerp = 0*rightV + -1*upV |
| 1012 | local cut = Instance.new("Part") |
| 1013 | cut.Size = Vector3.new(8, 0.4, 8) |
| 1014 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4 * edgePerp, edgeDir, normalV) |
| 1015 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 1016 | cut.Material = Enum.Material.Glacier |
| 1017 | cut.MaterialVariant = "2022 Stud" |
| 1018 | cut.Anchored = true; cut.Parent = workspace |
| 1019 | table.insert(angBoxes, cut) |
| 1020 | end |
| 1021 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1022 | if #cuts > 0 then |
| 1023 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1024 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1025 | if ok and result then |
| 1026 | cyl:Destroy() |
| 1027 | result.Name = "Arch_RR"; result.Anchored = true; result.Parent = model |
| 1028 | else |
| 1029 | cyl.Name = "Arch_RR"; cyl.Parent = model |
| 1030 | end |
| 1031 | else |
| 1032 | cyl.Name = "Arch_RR"; cyl.Parent = model |
| 1033 | end |
| 1034 | end |
| 1035 | do |
| 1036 | local rightV = Vector3.new(0,0,1).Unit |
| 1037 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1038 | local normalV = upV:Cross(rightV) |
| 1039 | local pos = Vector3.new(4.67, 1.58, 6.5) |
| 1040 | local cyl = Instance.new("Part") |
| 1041 | cyl.Shape = Enum.PartType.Cylinder |
| 1042 | cyl.Size = Vector3.new(0.2, 3.9, 3.9) |
| 1043 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1044 | cyl.BrickColor = BrickColor.new("Toothpaste") |
| 1045 | cyl.Material = Enum.Material.Glacier |
| 1046 | cyl.MaterialVariant = "2022 Stud" |
| 1047 | cyl.Anchored = true; cyl.Parent = workspace |
| 1048 | local cuts = {} |
| 1049 | local hole = Instance.new("Part") |
| 1050 | hole.Shape = Enum.PartType.Cylinder |
| 1051 | hole.Size = Vector3.new(0.4, 3.7, 3.7) |
| 1052 | hole.CFrame = cyl.CFrame |
| 1053 | hole.BrickColor = BrickColor.new("Toothpaste") |
| 1054 | hole.Material = Enum.Material.Glacier |
| 1055 | hole.MaterialVariant = "2022 Stud" |
| 1056 | hole.Anchored = true; hole.Parent = workspace |
| 1057 | table.insert(cuts, hole) |
| 1058 | local angBoxes = {} |
| 1059 | do |
| 1060 | local edgeDir = 1*rightV + 0*upV |
| 1061 | local edgePerp = 0*rightV + 1*upV |
| 1062 | local cut = Instance.new("Part") |
| 1063 | cut.Size = Vector3.new(7.8, 0.4, 7.8) |
| 1064 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 3.9 * edgePerp, edgeDir, normalV) |
| 1065 | cut.BrickColor = BrickColor.new("Toothpaste") |
| 1066 | cut.Material = Enum.Material.Glacier |
| 1067 | cut.MaterialVariant = "2022 Stud" |
| 1068 | cut.Anchored = true; cut.Parent = workspace |
| 1069 | table.insert(angBoxes, cut) |
| 1070 | end |
| 1071 | do |
| 1072 | local edgeDir = -1*rightV + 0*upV |
| 1073 | local edgePerp = 0*rightV + -1*upV |
| 1074 | local cut = Instance.new("Part") |
| 1075 | cut.Size = Vector3.new(7.8, 0.4, 7.8) |
| 1076 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 3.9 * edgePerp, edgeDir, normalV) |
| 1077 | cut.BrickColor = BrickColor.new("Toothpaste") |
| 1078 | cut.Material = Enum.Material.Glacier |
| 1079 | cut.MaterialVariant = "2022 Stud" |
| 1080 | cut.Anchored = true; cut.Parent = workspace |
| 1081 | table.insert(angBoxes, cut) |
| 1082 | end |
| 1083 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1084 | if #cuts > 0 then |
| 1085 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1086 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1087 | if ok and result then |
| 1088 | cyl:Destroy() |
| 1089 | result.Name = "ArchGlow_RR"; result.Anchored = true; result.Parent = model |
| 1090 | else |
| 1091 | cyl.Name = "ArchGlow_RR"; cyl.Parent = model |
| 1092 | end |
| 1093 | else |
| 1094 | cyl.Name = "ArchGlow_RR"; cyl.Parent = model |
| 1095 | end |
| 1096 | end |
| 1097 | model.PrimaryPart = model:FindFirstChild("BodyLower") |
| 1098 | print("TimeMachineCar built: " .. #model:GetChildren() .. " parts") |
Loading comments...