Loading model...
by Prime AirGhost · 9/27/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: HyperdriveStarMap |
| 3 | |
| 4 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 5 | -- Model: HyperdriveStarMap |
| 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 = "HyperdriveStarMap" |
| 24 | model.Parent = workspace |
| 25 | |
| 26 | local variants = { |
| 27 | ["Bright blue"] = "2022 Universal", |
| 28 | ["Bright orange"] = "2022 Stud", |
| 29 | ["Bright red"] = "2022 Stud", |
| 30 | ["Earth yellow"] = "2022 Stud", |
| 31 | ["Ghost grey"] = "2022 Stud", |
| 32 | ["Gold"] = "2022 Stud", |
| 33 | ["Magenta"] = "2022 Stud", |
| 34 | ["Medium stone grey"] = "2022 Inlet", |
| 35 | ["Navy blue"] = "2022 Stud", |
| 36 | ["Nougat"] = "2022 Stud", |
| 37 | ["Sand blue"] = "2022 Stud", |
| 38 | ["Teal"] = "2022 Stud", |
| 39 | ["Toothpaste"] = "2022 Stud", |
| 40 | ["White"] = "2022 Stud", |
| 41 | } |
| 42 | do |
| 43 | local p = Instance.new("Part") |
| 44 | p.Shape = Enum.PartType.Cylinder |
| 45 | p.Name = "GalaxyBase_Outer" |
| 46 | p.Size = Vector3.new(0.5, 45, 45) |
| 47 | p.CFrame = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 48 | p.BrickColor = BrickColor.new("Navy blue") |
| 49 | p.Material = Enum.Material.Glacier |
| 50 | p.MaterialVariant = "2022 Stud" |
| 51 | p.Anchored = true |
| 52 | p.Parent = model |
| 53 | end |
| 54 | do |
| 55 | local p = Instance.new("Part") |
| 56 | p.Shape = Enum.PartType.Cylinder |
| 57 | p.Name = "GalaxyBase_Mid" |
| 58 | p.Size = Vector3.new(0.5, 32, 32) |
| 59 | p.CFrame = CFrame.new(0, 0.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 60 | p.BrickColor = BrickColor.new("Bright blue") |
| 61 | p.Material = Enum.Material.Glacier |
| 62 | p.MaterialVariant = "2022 Universal" |
| 63 | p.Anchored = true |
| 64 | p.Parent = model |
| 65 | end |
| 66 | do |
| 67 | local p = Instance.new("Part") |
| 68 | p.Shape = Enum.PartType.Cylinder |
| 69 | p.Name = "GalaxyBase_Core" |
| 70 | p.Size = Vector3.new(0.5, 18, 18) |
| 71 | p.CFrame = CFrame.new(0, 0.2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 72 | p.BrickColor = BrickColor.new("Toothpaste") |
| 73 | p.Material = Enum.Material.Neon |
| 74 | p.Anchored = true |
| 75 | p.Parent = model |
| 76 | end |
| 77 | do |
| 78 | local p = Instance.new("Part") |
| 79 | p.Shape = Enum.PartType.Ball |
| 80 | p.Name = "CentralSphere" |
| 81 | p.Size = Vector3.new(12, 12, 12) |
| 82 | p.CFrame = CFrame.new(0, 6, 0) |
| 83 | p.BrickColor = BrickColor.new("Ghost grey") |
| 84 | p.Material = Enum.Material.Glacier |
| 85 | p.MaterialVariant = "2022 Stud" |
| 86 | p.Anchored = true |
| 87 | p.Parent = model |
| 88 | end |
| 89 | do |
| 90 | local p = Instance.new("Part") |
| 91 | p.Shape = Enum.PartType.Ball |
| 92 | p.Name = "CentralSphere_Core" |
| 93 | p.Size = Vector3.new(8, 8, 8) |
| 94 | p.CFrame = CFrame.new(0, 6, 0) |
| 95 | p.BrickColor = BrickColor.new("Toothpaste") |
| 96 | p.Material = Enum.Material.Neon |
| 97 | p.Anchored = true |
| 98 | p.Parent = model |
| 99 | end |
| 100 | do |
| 101 | local p = Instance.new("Part") |
| 102 | p.Shape = Enum.PartType.Ball |
| 103 | p.Name = "Sys1_Star" |
| 104 | p.Size = Vector3.new(2, 2, 2) |
| 105 | p.CFrame = CFrame.new(14, 1, 10) |
| 106 | p.BrickColor = BrickColor.new("New Yeller") |
| 107 | p.Material = Enum.Material.Neon |
| 108 | p.Anchored = true |
| 109 | p.Parent = model |
| 110 | end |
| 111 | do |
| 112 | local p = Instance.new("Part") |
| 113 | p.Shape = Enum.PartType.Ball |
| 114 | p.Name = "Sys1_Planet_0" |
| 115 | p.Size = Vector3.new(0.8, 0.8, 0.8) |
| 116 | p.CFrame = CFrame.new(16.1213, 0.4, 7.87868) |
| 117 | p.BrickColor = BrickColor.new("Bright orange") |
| 118 | p.Material = Enum.Material.Glacier |
| 119 | p.MaterialVariant = "2022 Stud" |
| 120 | p.Anchored = true |
| 121 | p.Parent = model |
| 122 | end |
| 123 | do |
| 124 | local p = Instance.new("Part") |
| 125 | p.Shape = Enum.PartType.Ball |
| 126 | p.Name = "Sys1_Planet_1" |
| 127 | p.Size = Vector3.new(1.2, 1.2, 1.2) |
| 128 | p.CFrame = CFrame.new(11.75, 0.6, 6.10289) |
| 129 | p.BrickColor = BrickColor.new("Sand blue") |
| 130 | p.Material = Enum.Material.Glacier |
| 131 | p.MaterialVariant = "2022 Stud" |
| 132 | p.Anchored = true |
| 133 | p.Parent = model |
| 134 | end |
| 135 | do |
| 136 | local p = Instance.new("Part") |
| 137 | p.Shape = Enum.PartType.Ball |
| 138 | p.Name = "Sys1_Planet_2" |
| 139 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 140 | p.CFrame = CFrame.new(15.0419, 0.3, 15.9088) |
| 141 | p.BrickColor = BrickColor.new("White") |
| 142 | p.Material = Enum.Material.Glacier |
| 143 | p.MaterialVariant = "2022 Stud" |
| 144 | p.Anchored = true |
| 145 | p.Parent = model |
| 146 | end |
| 147 | do |
| 148 | local p = Instance.new("Part") |
| 149 | p.Shape = Enum.PartType.Ball |
| 150 | p.Name = "Sys2_Star" |
| 151 | p.Size = Vector3.new(2.5, 2.5, 2.5) |
| 152 | p.CFrame = CFrame.new(-16, 1.25, -8) |
| 153 | p.BrickColor = BrickColor.new("New Yeller") |
| 154 | p.Material = Enum.Material.Neon |
| 155 | p.Anchored = true |
| 156 | p.Parent = model |
| 157 | end |
| 158 | do |
| 159 | local p = Instance.new("Part") |
| 160 | p.Shape = Enum.PartType.Ball |
| 161 | p.Name = "Sys2_Planet_0" |
| 162 | p.Size = Vector3.new(1.5, 1.5, 1.5) |
| 163 | p.CFrame = CFrame.new(-12.5359, 0.75, -10) |
| 164 | p.BrickColor = BrickColor.new("Earth yellow") |
| 165 | p.Material = Enum.Material.Glacier |
| 166 | p.MaterialVariant = "2022 Stud" |
| 167 | p.Anchored = true |
| 168 | p.Parent = model |
| 169 | end |
| 170 | do |
| 171 | local p = Instance.new("Part") |
| 172 | p.Shape = Enum.PartType.Ball |
| 173 | p.Name = "Sys2_Planet_1" |
| 174 | p.Size = Vector3.new(1, 1, 1) |
| 175 | p.CFrame = CFrame.new(-21.6292, 0.5, -4.75) |
| 176 | p.BrickColor = BrickColor.new("Bright red") |
| 177 | p.Material = Enum.Material.Glacier |
| 178 | p.MaterialVariant = "2022 Stud" |
| 179 | p.Anchored = true |
| 180 | p.Parent = model |
| 181 | end |
| 182 | do |
| 183 | local p = Instance.new("Part") |
| 184 | p.Shape = Enum.PartType.Ball |
| 185 | p.Name = "Sys3_Star" |
| 186 | p.Size = Vector3.new(1.5, 1.5, 1.5) |
| 187 | p.CFrame = CFrame.new(-12, 0.75, 15) |
| 188 | p.BrickColor = BrickColor.new("New Yeller") |
| 189 | p.Material = Enum.Material.Neon |
| 190 | p.Anchored = true |
| 191 | p.Parent = model |
| 192 | end |
| 193 | do |
| 194 | local p = Instance.new("Part") |
| 195 | p.Shape = Enum.PartType.Ball |
| 196 | p.Name = "Sys3_Planet_0" |
| 197 | p.Size = Vector3.new(0.7, 0.7, 0.7) |
| 198 | p.CFrame = CFrame.new(-12, 0.35, 12.5) |
| 199 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 200 | p.Material = Enum.Material.Glacier |
| 201 | p.MaterialVariant = "2022 Inlet" |
| 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 = "Sys3_Planet_1" |
| 209 | p.Size = Vector3.new(0.9, 0.9, 0.9) |
| 210 | p.CFrame = CFrame.new(-8.5359, 0.45, 17) |
| 211 | p.BrickColor = BrickColor.new("Teal") |
| 212 | p.Material = Enum.Material.Glacier |
| 213 | p.MaterialVariant = "2022 Stud" |
| 214 | p.Anchored = true |
| 215 | p.Parent = model |
| 216 | end |
| 217 | do |
| 218 | local p = Instance.new("Part") |
| 219 | p.Shape = Enum.PartType.Ball |
| 220 | p.Name = "Sys4_Star" |
| 221 | p.Size = Vector3.new(1.8, 1.8, 1.8) |
| 222 | p.CFrame = CFrame.new(12, 0.9, -14) |
| 223 | p.BrickColor = BrickColor.new("New Yeller") |
| 224 | p.Material = Enum.Material.Neon |
| 225 | p.Anchored = true |
| 226 | p.Parent = model |
| 227 | end |
| 228 | do |
| 229 | local p = Instance.new("Part") |
| 230 | p.Shape = Enum.PartType.Ball |
| 231 | p.Name = "Sys4_Planet_0" |
| 232 | p.Size = Vector3.new(1.1, 1.1, 1.1) |
| 233 | p.CFrame = CFrame.new(8.5, 0.55, -14) |
| 234 | p.BrickColor = BrickColor.new("Nougat") |
| 235 | p.Material = Enum.Material.Glacier |
| 236 | p.MaterialVariant = "2022 Stud" |
| 237 | p.Anchored = true |
| 238 | p.Parent = model |
| 239 | end |
| 240 | do |
| 241 | local p = Instance.new("Part") |
| 242 | p.Shape = Enum.PartType.Ball |
| 243 | p.Name = "Sys5_Star" |
| 244 | p.Size = Vector3.new(1.2, 1.2, 1.2) |
| 245 | p.CFrame = CFrame.new(20, 0.6, -2) |
| 246 | p.BrickColor = BrickColor.new("New Yeller") |
| 247 | p.Material = Enum.Material.Neon |
| 248 | p.Anchored = true |
| 249 | p.Parent = model |
| 250 | end |
| 251 | do |
| 252 | local p = Instance.new("Part") |
| 253 | p.Shape = Enum.PartType.Ball |
| 254 | p.Name = "Sys5_Planet_0" |
| 255 | p.Size = Vector3.new(0.5, 0.5, 0.5) |
| 256 | p.CFrame = CFrame.new(21, 0.25, -3.73205) |
| 257 | p.BrickColor = BrickColor.new("White") |
| 258 | p.Material = Enum.Material.Glacier |
| 259 | p.MaterialVariant = "2022 Stud" |
| 260 | p.Anchored = true |
| 261 | p.Parent = model |
| 262 | end |
| 263 | do |
| 264 | local p = Instance.new("Part") |
| 265 | p.Shape = Enum.PartType.Ball |
| 266 | p.Name = "TinyStar_0" |
| 267 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 268 | p.CFrame = CFrame.new(8, 0.3, 18) |
| 269 | p.BrickColor = BrickColor.new("White") |
| 270 | p.Material = Enum.Material.Neon |
| 271 | p.Anchored = true |
| 272 | p.Parent = model |
| 273 | end |
| 274 | do |
| 275 | local p = Instance.new("Part") |
| 276 | p.Shape = Enum.PartType.Ball |
| 277 | p.Name = "TinyStar_1" |
| 278 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 279 | p.CFrame = CFrame.new(-8, 0.3, -18) |
| 280 | p.BrickColor = BrickColor.new("White") |
| 281 | p.Material = Enum.Material.Neon |
| 282 | p.Anchored = true |
| 283 | p.Parent = model |
| 284 | end |
| 285 | do |
| 286 | local p = Instance.new("Part") |
| 287 | p.Shape = Enum.PartType.Ball |
| 288 | p.Name = "TinyStar_2" |
| 289 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 290 | p.CFrame = CFrame.new(18, 0.3, 8) |
| 291 | p.BrickColor = BrickColor.new("White") |
| 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.Ball |
| 299 | p.Name = "TinyStar_3" |
| 300 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 301 | p.CFrame = CFrame.new(-18, 0.3, -8) |
| 302 | p.BrickColor = BrickColor.new("White") |
| 303 | p.Material = Enum.Material.Neon |
| 304 | p.Anchored = true |
| 305 | p.Parent = model |
| 306 | end |
| 307 | do |
| 308 | local p = Instance.new("Part") |
| 309 | p.Shape = Enum.PartType.Ball |
| 310 | p.Name = "TinyStar_4" |
| 311 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 312 | p.CFrame = CFrame.new(5, 0.3, -20) |
| 313 | p.BrickColor = BrickColor.new("White") |
| 314 | p.Material = Enum.Material.Neon |
| 315 | p.Anchored = true |
| 316 | p.Parent = model |
| 317 | end |
| 318 | do |
| 319 | local p = Instance.new("Part") |
| 320 | p.Shape = Enum.PartType.Ball |
| 321 | p.Name = "TinyStar_5" |
| 322 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 323 | p.CFrame = CFrame.new(-5, 0.3, 20) |
| 324 | p.BrickColor = BrickColor.new("White") |
| 325 | p.Material = Enum.Material.Neon |
| 326 | p.Anchored = true |
| 327 | p.Parent = model |
| 328 | end |
| 329 | do |
| 330 | local p = Instance.new("Part") |
| 331 | p.Shape = Enum.PartType.Ball |
| 332 | p.Name = "TinyStar_6" |
| 333 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 334 | p.CFrame = CFrame.new(20, 0.3, -5) |
| 335 | p.BrickColor = BrickColor.new("White") |
| 336 | p.Material = Enum.Material.Neon |
| 337 | p.Anchored = true |
| 338 | p.Parent = model |
| 339 | end |
| 340 | do |
| 341 | local p = Instance.new("Part") |
| 342 | p.Shape = Enum.PartType.Ball |
| 343 | p.Name = "TinyStar_7" |
| 344 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 345 | p.CFrame = CFrame.new(-20, 0.3, 5) |
| 346 | p.BrickColor = BrickColor.new("White") |
| 347 | p.Material = Enum.Material.Neon |
| 348 | p.Anchored = true |
| 349 | p.Parent = model |
| 350 | end |
| 351 | do |
| 352 | local p = Instance.new("Part") |
| 353 | p.Shape = Enum.PartType.Ball |
| 354 | p.Name = "TinyStar_8" |
| 355 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 356 | p.CFrame = CFrame.new(10, 0.3, 0) |
| 357 | p.BrickColor = BrickColor.new("White") |
| 358 | p.Material = Enum.Material.Neon |
| 359 | p.Anchored = true |
| 360 | p.Parent = model |
| 361 | end |
| 362 | do |
| 363 | local p = Instance.new("Part") |
| 364 | p.Shape = Enum.PartType.Ball |
| 365 | p.Name = "TinyStar_9" |
| 366 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 367 | p.CFrame = CFrame.new(-10, 0.3, 0) |
| 368 | p.BrickColor = BrickColor.new("White") |
| 369 | p.Material = Enum.Material.Neon |
| 370 | p.Anchored = true |
| 371 | p.Parent = model |
| 372 | end |
| 373 | do |
| 374 | local p = Instance.new("Part") |
| 375 | p.Shape = Enum.PartType.Ball |
| 376 | p.Name = "TinyStar_10" |
| 377 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 378 | p.CFrame = CFrame.new(0, 0.3, 10) |
| 379 | p.BrickColor = BrickColor.new("White") |
| 380 | p.Material = Enum.Material.Neon |
| 381 | p.Anchored = true |
| 382 | p.Parent = model |
| 383 | end |
| 384 | do |
| 385 | local p = Instance.new("Part") |
| 386 | p.Shape = Enum.PartType.Ball |
| 387 | p.Name = "TinyStar_11" |
| 388 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 389 | p.CFrame = CFrame.new(0, 0.3, -10) |
| 390 | p.BrickColor = BrickColor.new("White") |
| 391 | p.Material = Enum.Material.Neon |
| 392 | p.Anchored = true |
| 393 | p.Parent = model |
| 394 | end |
| 395 | do |
| 396 | local p = Instance.new("Part") |
| 397 | p.Shape = Enum.PartType.Ball |
| 398 | p.Name = "TinyStar_12" |
| 399 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 400 | p.CFrame = CFrame.new(15, 0.3, 15) |
| 401 | p.BrickColor = BrickColor.new("White") |
| 402 | p.Material = Enum.Material.Neon |
| 403 | p.Anchored = true |
| 404 | p.Parent = model |
| 405 | end |
| 406 | do |
| 407 | local p = Instance.new("Part") |
| 408 | p.Shape = Enum.PartType.Ball |
| 409 | p.Name = "TinyStar_13" |
| 410 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 411 | p.CFrame = CFrame.new(-15, 0.3, -15) |
| 412 | p.BrickColor = BrickColor.new("White") |
| 413 | p.Material = Enum.Material.Neon |
| 414 | p.Anchored = true |
| 415 | p.Parent = model |
| 416 | end |
| 417 | do |
| 418 | local p = Instance.new("Part") |
| 419 | p.Shape = Enum.PartType.Ball |
| 420 | p.Name = "TinyStar_14" |
| 421 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 422 | p.CFrame = CFrame.new(15, 0.3, -15) |
| 423 | p.BrickColor = BrickColor.new("White") |
| 424 | p.Material = Enum.Material.Neon |
| 425 | p.Anchored = true |
| 426 | p.Parent = model |
| 427 | end |
| 428 | do |
| 429 | local p = Instance.new("Part") |
| 430 | p.Shape = Enum.PartType.Ball |
| 431 | p.Name = "TinyStar_15" |
| 432 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 433 | p.CFrame = CFrame.new(-15, 0.3, 15) |
| 434 | p.BrickColor = BrickColor.new("White") |
| 435 | p.Material = Enum.Material.Neon |
| 436 | p.Anchored = true |
| 437 | p.Parent = model |
| 438 | end |
| 439 | do |
| 440 | local rightV = Vector3.new(1,0,0).Unit |
| 441 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 442 | local normalV = upV:Cross(rightV) |
| 443 | local pos = Vector3.new(0, 0.3, 0) |
| 444 | local cyl = Instance.new("Part") |
| 445 | cyl.Shape = Enum.PartType.Cylinder |
| 446 | cyl.Size = Vector3.new(0.2, 30, 30) |
| 447 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 448 | cyl.BrickColor = BrickColor.new("Magenta") |
| 449 | cyl.Material = Enum.Material.Glacier |
| 450 | cyl.MaterialVariant = "2022 Stud" |
| 451 | cyl.Anchored = true; cyl.Parent = workspace |
| 452 | local cuts = {} |
| 453 | local hole = Instance.new("Part") |
| 454 | hole.Shape = Enum.PartType.Cylinder |
| 455 | hole.Size = Vector3.new(0.4, 18, 18) |
| 456 | hole.CFrame = cyl.CFrame |
| 457 | hole.BrickColor = BrickColor.new("Magenta") |
| 458 | hole.Material = Enum.Material.Glacier |
| 459 | hole.MaterialVariant = "2022 Stud" |
| 460 | hole.Anchored = true; hole.Parent = workspace |
| 461 | table.insert(cuts, hole) |
| 462 | local angBoxes = {} |
| 463 | do |
| 464 | local edgeDir = 0.939693*rightV + 0.34202*upV |
| 465 | local edgePerp = -0.34202*rightV + 0.939693*upV |
| 466 | local cut = Instance.new("Part") |
| 467 | cut.Size = Vector3.new(60, 0.4, 60) |
| 468 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 30 * edgePerp, edgeDir, normalV) |
| 469 | cut.BrickColor = BrickColor.new("Magenta") |
| 470 | cut.Material = Enum.Material.Glacier |
| 471 | cut.MaterialVariant = "2022 Stud" |
| 472 | cut.Anchored = true; cut.Parent = workspace |
| 473 | table.insert(angBoxes, cut) |
| 474 | end |
| 475 | do |
| 476 | local edgeDir = -0.939693*rightV + 0.34202*upV |
| 477 | local edgePerp = -0.34202*rightV + -0.939693*upV |
| 478 | local cut = Instance.new("Part") |
| 479 | cut.Size = Vector3.new(60, 0.4, 60) |
| 480 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 30 * edgePerp, edgeDir, normalV) |
| 481 | cut.BrickColor = BrickColor.new("Magenta") |
| 482 | cut.Material = Enum.Material.Glacier |
| 483 | cut.MaterialVariant = "2022 Stud" |
| 484 | cut.Anchored = true; cut.Parent = workspace |
| 485 | table.insert(angBoxes, cut) |
| 486 | end |
| 487 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 488 | if #cuts > 0 then |
| 489 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 490 | for _, c in ipairs(cuts) do c:Destroy() end |
| 491 | if ok and result then |
| 492 | cyl:Destroy() |
| 493 | result.Name = "SpiralArm_1"; result.Anchored = true; result.Parent = model |
| 494 | else |
| 495 | cyl.Name = "SpiralArm_1"; cyl.Parent = model |
| 496 | end |
| 497 | else |
| 498 | cyl.Name = "SpiralArm_1"; cyl.Parent = model |
| 499 | end |
| 500 | end |
| 501 | do |
| 502 | local rightV = Vector3.new(-1,0,0).Unit |
| 503 | local upV = (Vector3.new(0,0,1) - Vector3.new(0,0,1):Dot(rightV)*rightV).Unit |
| 504 | local normalV = upV:Cross(rightV) |
| 505 | local pos = Vector3.new(0, 0.3, 0) |
| 506 | local cyl = Instance.new("Part") |
| 507 | cyl.Shape = Enum.PartType.Cylinder |
| 508 | cyl.Size = Vector3.new(0.2, 30, 30) |
| 509 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 510 | cyl.BrickColor = BrickColor.new("Magenta") |
| 511 | cyl.Material = Enum.Material.Glacier |
| 512 | cyl.MaterialVariant = "2022 Stud" |
| 513 | cyl.Anchored = true; cyl.Parent = workspace |
| 514 | local cuts = {} |
| 515 | local hole = Instance.new("Part") |
| 516 | hole.Shape = Enum.PartType.Cylinder |
| 517 | hole.Size = Vector3.new(0.4, 18, 18) |
| 518 | hole.CFrame = cyl.CFrame |
| 519 | hole.BrickColor = BrickColor.new("Magenta") |
| 520 | hole.Material = Enum.Material.Glacier |
| 521 | hole.MaterialVariant = "2022 Stud" |
| 522 | hole.Anchored = true; hole.Parent = workspace |
| 523 | table.insert(cuts, hole) |
| 524 | local angBoxes = {} |
| 525 | do |
| 526 | local edgeDir = 0.939693*rightV + 0.34202*upV |
| 527 | local edgePerp = -0.34202*rightV + 0.939693*upV |
| 528 | local cut = Instance.new("Part") |
| 529 | cut.Size = Vector3.new(60, 0.4, 60) |
| 530 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 30 * edgePerp, edgeDir, normalV) |
| 531 | cut.BrickColor = BrickColor.new("Magenta") |
| 532 | cut.Material = Enum.Material.Glacier |
| 533 | cut.MaterialVariant = "2022 Stud" |
| 534 | cut.Anchored = true; cut.Parent = workspace |
| 535 | table.insert(angBoxes, cut) |
| 536 | end |
| 537 | do |
| 538 | local edgeDir = -0.939693*rightV + 0.34202*upV |
| 539 | local edgePerp = -0.34202*rightV + -0.939693*upV |
| 540 | local cut = Instance.new("Part") |
| 541 | cut.Size = Vector3.new(60, 0.4, 60) |
| 542 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 30 * edgePerp, edgeDir, normalV) |
| 543 | cut.BrickColor = BrickColor.new("Magenta") |
| 544 | cut.Material = Enum.Material.Glacier |
| 545 | cut.MaterialVariant = "2022 Stud" |
| 546 | cut.Anchored = true; cut.Parent = workspace |
| 547 | table.insert(angBoxes, cut) |
| 548 | end |
| 549 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 550 | if #cuts > 0 then |
| 551 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 552 | for _, c in ipairs(cuts) do c:Destroy() end |
| 553 | if ok and result then |
| 554 | cyl:Destroy() |
| 555 | result.Name = "SpiralArm_2"; result.Anchored = true; result.Parent = model |
| 556 | else |
| 557 | cyl.Name = "SpiralArm_2"; cyl.Parent = model |
| 558 | end |
| 559 | else |
| 560 | cyl.Name = "SpiralArm_2"; cyl.Parent = model |
| 561 | end |
| 562 | end |
| 563 | do |
| 564 | local rightV = Vector3.new(0,0,-1).Unit |
| 565 | local upV = (Vector3.new(-1,0,0) - Vector3.new(-1,0,0):Dot(rightV)*rightV).Unit |
| 566 | local normalV = upV:Cross(rightV) |
| 567 | local pos = Vector3.new(0, 0.46, 0) |
| 568 | local cyl = Instance.new("Part") |
| 569 | cyl.Shape = Enum.PartType.Cylinder |
| 570 | cyl.Size = Vector3.new(0.2, 36, 36) |
| 571 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 572 | cyl.BrickColor = BrickColor.new("Toothpaste") |
| 573 | cyl.Material = Enum.Material.Glacier |
| 574 | cyl.MaterialVariant = "2022 Stud" |
| 575 | cyl.Anchored = true; cyl.Parent = workspace |
| 576 | local cuts = {} |
| 577 | local hole = Instance.new("Part") |
| 578 | hole.Shape = Enum.PartType.Cylinder |
| 579 | hole.Size = Vector3.new(0.4, 24, 24) |
| 580 | hole.CFrame = cyl.CFrame |
| 581 | hole.BrickColor = BrickColor.new("Toothpaste") |
| 582 | hole.Material = Enum.Material.Glacier |
| 583 | hole.MaterialVariant = "2022 Stud" |
| 584 | hole.Anchored = true; hole.Parent = workspace |
| 585 | table.insert(cuts, hole) |
| 586 | local angBoxes = {} |
| 587 | do |
| 588 | local edgeDir = 0.766044*rightV + 0.642788*upV |
| 589 | local edgePerp = -0.642788*rightV + 0.766044*upV |
| 590 | local cut = Instance.new("Part") |
| 591 | cut.Size = Vector3.new(72, 0.4, 72) |
| 592 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 36 * edgePerp, edgeDir, normalV) |
| 593 | cut.BrickColor = BrickColor.new("Toothpaste") |
| 594 | cut.Material = Enum.Material.Glacier |
| 595 | cut.MaterialVariant = "2022 Stud" |
| 596 | cut.Anchored = true; cut.Parent = workspace |
| 597 | table.insert(angBoxes, cut) |
| 598 | end |
| 599 | do |
| 600 | local edgeDir = -0.766044*rightV + 0.642788*upV |
| 601 | local edgePerp = -0.642788*rightV + -0.766044*upV |
| 602 | local cut = Instance.new("Part") |
| 603 | cut.Size = Vector3.new(72, 0.4, 72) |
| 604 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 36 * edgePerp, edgeDir, normalV) |
| 605 | cut.BrickColor = BrickColor.new("Toothpaste") |
| 606 | cut.Material = Enum.Material.Glacier |
| 607 | cut.MaterialVariant = "2022 Stud" |
| 608 | cut.Anchored = true; cut.Parent = workspace |
| 609 | table.insert(angBoxes, cut) |
| 610 | end |
| 611 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 612 | if #cuts > 0 then |
| 613 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 614 | for _, c in ipairs(cuts) do c:Destroy() end |
| 615 | if ok and result then |
| 616 | cyl:Destroy() |
| 617 | result.Name = "SpiralArm_3"; result.Anchored = true; result.Parent = model |
| 618 | else |
| 619 | cyl.Name = "SpiralArm_3"; cyl.Parent = model |
| 620 | end |
| 621 | else |
| 622 | cyl.Name = "SpiralArm_3"; cyl.Parent = model |
| 623 | end |
| 624 | end |
| 625 | do |
| 626 | local rightV = Vector3.new(0,0,1).Unit |
| 627 | local upV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(rightV)*rightV).Unit |
| 628 | local normalV = upV:Cross(rightV) |
| 629 | local pos = Vector3.new(0, 0.38, 0) |
| 630 | local cyl = Instance.new("Part") |
| 631 | cyl.Shape = Enum.PartType.Cylinder |
| 632 | cyl.Size = Vector3.new(0.2, 36, 36) |
| 633 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 634 | cyl.BrickColor = BrickColor.new("Toothpaste") |
| 635 | cyl.Material = Enum.Material.Glacier |
| 636 | cyl.MaterialVariant = "2022 Stud" |
| 637 | cyl.Anchored = true; cyl.Parent = workspace |
| 638 | local cuts = {} |
| 639 | local hole = Instance.new("Part") |
| 640 | hole.Shape = Enum.PartType.Cylinder |
| 641 | hole.Size = Vector3.new(0.4, 24, 24) |
| 642 | hole.CFrame = cyl.CFrame |
| 643 | hole.BrickColor = BrickColor.new("Toothpaste") |
| 644 | hole.Material = Enum.Material.Glacier |
| 645 | hole.MaterialVariant = "2022 Stud" |
| 646 | hole.Anchored = true; hole.Parent = workspace |
| 647 | table.insert(cuts, hole) |
| 648 | local angBoxes = {} |
| 649 | do |
| 650 | local edgeDir = 0.766044*rightV + 0.642788*upV |
| 651 | local edgePerp = -0.642788*rightV + 0.766044*upV |
| 652 | local cut = Instance.new("Part") |
| 653 | cut.Size = Vector3.new(72, 0.4, 72) |
| 654 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 36 * edgePerp, edgeDir, normalV) |
| 655 | cut.BrickColor = BrickColor.new("Toothpaste") |
| 656 | cut.Material = Enum.Material.Glacier |
| 657 | cut.MaterialVariant = "2022 Stud" |
| 658 | cut.Anchored = true; cut.Parent = workspace |
| 659 | table.insert(angBoxes, cut) |
| 660 | end |
| 661 | do |
| 662 | local edgeDir = -0.766044*rightV + 0.642788*upV |
| 663 | local edgePerp = -0.642788*rightV + -0.766044*upV |
| 664 | local cut = Instance.new("Part") |
| 665 | cut.Size = Vector3.new(72, 0.4, 72) |
| 666 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 36 * edgePerp, edgeDir, normalV) |
| 667 | cut.BrickColor = BrickColor.new("Toothpaste") |
| 668 | cut.Material = Enum.Material.Glacier |
| 669 | cut.MaterialVariant = "2022 Stud" |
| 670 | cut.Anchored = true; cut.Parent = workspace |
| 671 | table.insert(angBoxes, cut) |
| 672 | end |
| 673 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 674 | if #cuts > 0 then |
| 675 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 676 | for _, c in ipairs(cuts) do c:Destroy() end |
| 677 | if ok and result then |
| 678 | cyl:Destroy() |
| 679 | result.Name = "SpiralArm_4"; result.Anchored = true; result.Parent = model |
| 680 | else |
| 681 | cyl.Name = "SpiralArm_4"; cyl.Parent = model |
| 682 | end |
| 683 | else |
| 684 | cyl.Name = "SpiralArm_4"; cyl.Parent = model |
| 685 | end |
| 686 | end |
| 687 | do |
| 688 | local rightV = Vector3.new(1,0,0).Unit |
| 689 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 690 | local normalV = upV:Cross(rightV) |
| 691 | local pos = Vector3.new(14, 0.48, 10) |
| 692 | local cyl = Instance.new("Part") |
| 693 | cyl.Shape = Enum.PartType.Cylinder |
| 694 | cyl.Size = Vector3.new(0.1, 6.4, 6.4) |
| 695 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 696 | cyl.BrickColor = BrickColor.new("Gold") |
| 697 | cyl.Material = Enum.Material.Glacier |
| 698 | cyl.MaterialVariant = "2022 Stud" |
| 699 | cyl.Anchored = true; cyl.Parent = workspace |
| 700 | local cuts = {} |
| 701 | local hole = Instance.new("Part") |
| 702 | hole.Shape = Enum.PartType.Cylinder |
| 703 | hole.Size = Vector3.new(0.3, 6, 6) |
| 704 | hole.CFrame = cyl.CFrame |
| 705 | hole.BrickColor = BrickColor.new("Gold") |
| 706 | hole.Material = Enum.Material.Glacier |
| 707 | hole.MaterialVariant = "2022 Stud" |
| 708 | hole.Anchored = true; hole.Parent = workspace |
| 709 | table.insert(cuts, hole) |
| 710 | if #cuts > 0 then |
| 711 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 712 | for _, c in ipairs(cuts) do c:Destroy() end |
| 713 | if ok and result then |
| 714 | cyl:Destroy() |
| 715 | result.Name = "Sys1_Ring_0"; result.Anchored = true; result.Parent = model |
| 716 | else |
| 717 | cyl.Name = "Sys1_Ring_0"; cyl.Parent = model |
| 718 | end |
| 719 | else |
| 720 | cyl.Name = "Sys1_Ring_0"; cyl.Parent = model |
| 721 | end |
| 722 | end |
| 723 | do |
| 724 | local rightV = Vector3.new(1,0,0).Unit |
| 725 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 726 | local normalV = upV:Cross(rightV) |
| 727 | local pos = Vector3.new(14, 0.48, 10) |
| 728 | local cyl = Instance.new("Part") |
| 729 | cyl.Shape = Enum.PartType.Cylinder |
| 730 | cyl.Size = Vector3.new(0.1, 9.4, 9.4) |
| 731 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 732 | cyl.BrickColor = BrickColor.new("Gold") |
| 733 | cyl.Material = Enum.Material.Glacier |
| 734 | cyl.MaterialVariant = "2022 Stud" |
| 735 | cyl.Anchored = true; cyl.Parent = workspace |
| 736 | local cuts = {} |
| 737 | local hole = Instance.new("Part") |
| 738 | hole.Shape = Enum.PartType.Cylinder |
| 739 | hole.Size = Vector3.new(0.3, 9, 9) |
| 740 | hole.CFrame = cyl.CFrame |
| 741 | hole.BrickColor = BrickColor.new("Gold") |
| 742 | hole.Material = Enum.Material.Glacier |
| 743 | hole.MaterialVariant = "2022 Stud" |
| 744 | hole.Anchored = true; hole.Parent = workspace |
| 745 | table.insert(cuts, hole) |
| 746 | if #cuts > 0 then |
| 747 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 748 | for _, c in ipairs(cuts) do c:Destroy() end |
| 749 | if ok and result then |
| 750 | cyl:Destroy() |
| 751 | result.Name = "Sys1_Ring_1"; result.Anchored = true; result.Parent = model |
| 752 | else |
| 753 | cyl.Name = "Sys1_Ring_1"; cyl.Parent = model |
| 754 | end |
| 755 | else |
| 756 | cyl.Name = "Sys1_Ring_1"; cyl.Parent = model |
| 757 | end |
| 758 | end |
| 759 | do |
| 760 | local rightV = Vector3.new(1,0,0).Unit |
| 761 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 762 | local normalV = upV:Cross(rightV) |
| 763 | local pos = Vector3.new(14, 0.48, 10) |
| 764 | local cyl = Instance.new("Part") |
| 765 | cyl.Shape = Enum.PartType.Cylinder |
| 766 | cyl.Size = Vector3.new(0.1, 12.4, 12.4) |
| 767 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 768 | cyl.BrickColor = BrickColor.new("Gold") |
| 769 | cyl.Material = Enum.Material.Glacier |
| 770 | cyl.MaterialVariant = "2022 Stud" |
| 771 | cyl.Anchored = true; cyl.Parent = workspace |
| 772 | local cuts = {} |
| 773 | local hole = Instance.new("Part") |
| 774 | hole.Shape = Enum.PartType.Cylinder |
| 775 | hole.Size = Vector3.new(0.3, 12, 12) |
| 776 | hole.CFrame = cyl.CFrame |
| 777 | hole.BrickColor = BrickColor.new("Gold") |
| 778 | hole.Material = Enum.Material.Glacier |
| 779 | hole.MaterialVariant = "2022 Stud" |
| 780 | hole.Anchored = true; hole.Parent = workspace |
| 781 | table.insert(cuts, hole) |
| 782 | if #cuts > 0 then |
| 783 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 784 | for _, c in ipairs(cuts) do c:Destroy() end |
| 785 | if ok and result then |
| 786 | cyl:Destroy() |
| 787 | result.Name = "Sys1_Ring_2"; result.Anchored = true; result.Parent = model |
| 788 | else |
| 789 | cyl.Name = "Sys1_Ring_2"; cyl.Parent = model |
| 790 | end |
| 791 | else |
| 792 | cyl.Name = "Sys1_Ring_2"; cyl.Parent = model |
| 793 | end |
| 794 | end |
| 795 | do |
| 796 | local rightV = Vector3.new(1,0,0).Unit |
| 797 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 798 | local normalV = upV:Cross(rightV) |
| 799 | local pos = Vector3.new(11.75, 0.6, 6.10289) |
| 800 | local cyl = Instance.new("Part") |
| 801 | cyl.Shape = Enum.PartType.Cylinder |
| 802 | cyl.Size = Vector3.new(0.1, 2.88, 2.88) |
| 803 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 804 | cyl.BrickColor = BrickColor.new("Gold") |
| 805 | cyl.Material = Enum.Material.Glacier |
| 806 | cyl.MaterialVariant = "2022 Stud" |
| 807 | cyl.Anchored = true; cyl.Parent = workspace |
| 808 | local cuts = {} |
| 809 | local hole = Instance.new("Part") |
| 810 | hole.Shape = Enum.PartType.Cylinder |
| 811 | hole.Size = Vector3.new(0.3, 1.92, 1.92) |
| 812 | hole.CFrame = cyl.CFrame |
| 813 | hole.BrickColor = BrickColor.new("Gold") |
| 814 | hole.Material = Enum.Material.Glacier |
| 815 | hole.MaterialVariant = "2022 Stud" |
| 816 | hole.Anchored = true; hole.Parent = workspace |
| 817 | table.insert(cuts, hole) |
| 818 | if #cuts > 0 then |
| 819 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 820 | for _, c in ipairs(cuts) do c:Destroy() end |
| 821 | if ok and result then |
| 822 | cyl:Destroy() |
| 823 | result.Name = "Sys1_PlanetRing_1"; result.Anchored = true; result.Parent = model |
| 824 | else |
| 825 | cyl.Name = "Sys1_PlanetRing_1"; cyl.Parent = model |
| 826 | end |
| 827 | else |
| 828 | cyl.Name = "Sys1_PlanetRing_1"; cyl.Parent = model |
| 829 | end |
| 830 | end |
| 831 | do |
| 832 | local rightV = Vector3.new(1,0,0).Unit |
| 833 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 834 | local normalV = upV:Cross(rightV) |
| 835 | local pos = Vector3.new(-16, 0.48, -8) |
| 836 | local cyl = Instance.new("Part") |
| 837 | cyl.Shape = Enum.PartType.Cylinder |
| 838 | cyl.Size = Vector3.new(0.1, 8.4, 8.4) |
| 839 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 840 | cyl.BrickColor = BrickColor.new("Gold") |
| 841 | cyl.Material = Enum.Material.Glacier |
| 842 | cyl.MaterialVariant = "2022 Stud" |
| 843 | cyl.Anchored = true; cyl.Parent = workspace |
| 844 | local cuts = {} |
| 845 | local hole = Instance.new("Part") |
| 846 | hole.Shape = Enum.PartType.Cylinder |
| 847 | hole.Size = Vector3.new(0.3, 8, 8) |
| 848 | hole.CFrame = cyl.CFrame |
| 849 | hole.BrickColor = BrickColor.new("Gold") |
| 850 | hole.Material = Enum.Material.Glacier |
| 851 | hole.MaterialVariant = "2022 Stud" |
| 852 | hole.Anchored = true; hole.Parent = workspace |
| 853 | table.insert(cuts, hole) |
| 854 | if #cuts > 0 then |
| 855 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 856 | for _, c in ipairs(cuts) do c:Destroy() end |
| 857 | if ok and result then |
| 858 | cyl:Destroy() |
| 859 | result.Name = "Sys2_Ring_0"; result.Anchored = true; result.Parent = model |
| 860 | else |
| 861 | cyl.Name = "Sys2_Ring_0"; cyl.Parent = model |
| 862 | end |
| 863 | else |
| 864 | cyl.Name = "Sys2_Ring_0"; cyl.Parent = model |
| 865 | end |
| 866 | end |
| 867 | do |
| 868 | local rightV = Vector3.new(1,0,0).Unit |
| 869 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 870 | local normalV = upV:Cross(rightV) |
| 871 | local pos = Vector3.new(-16, 0.44, -8) |
| 872 | local cyl = Instance.new("Part") |
| 873 | cyl.Shape = Enum.PartType.Cylinder |
| 874 | cyl.Size = Vector3.new(0.1, 13.4, 13.4) |
| 875 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 876 | cyl.BrickColor = BrickColor.new("Gold") |
| 877 | cyl.Material = Enum.Material.Glacier |
| 878 | cyl.MaterialVariant = "2022 Stud" |
| 879 | cyl.Anchored = true; cyl.Parent = workspace |
| 880 | local cuts = {} |
| 881 | local hole = Instance.new("Part") |
| 882 | hole.Shape = Enum.PartType.Cylinder |
| 883 | hole.Size = Vector3.new(0.3, 13, 13) |
| 884 | hole.CFrame = cyl.CFrame |
| 885 | hole.BrickColor = BrickColor.new("Gold") |
| 886 | hole.Material = Enum.Material.Glacier |
| 887 | hole.MaterialVariant = "2022 Stud" |
| 888 | hole.Anchored = true; hole.Parent = workspace |
| 889 | table.insert(cuts, hole) |
| 890 | if #cuts > 0 then |
| 891 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 892 | for _, c in ipairs(cuts) do c:Destroy() end |
| 893 | if ok and result then |
| 894 | cyl:Destroy() |
| 895 | result.Name = "Sys2_Ring_1"; result.Anchored = true; result.Parent = model |
| 896 | else |
| 897 | cyl.Name = "Sys2_Ring_1"; cyl.Parent = model |
| 898 | end |
| 899 | else |
| 900 | cyl.Name = "Sys2_Ring_1"; cyl.Parent = model |
| 901 | end |
| 902 | end |
| 903 | do |
| 904 | local rightV = Vector3.new(1,0,0).Unit |
| 905 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 906 | local normalV = upV:Cross(rightV) |
| 907 | local pos = Vector3.new(-12.5359, 0.75, -10) |
| 908 | local cyl = Instance.new("Part") |
| 909 | cyl.Shape = Enum.PartType.Cylinder |
| 910 | cyl.Size = Vector3.new(0.1, 3.6, 3.6) |
| 911 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 912 | cyl.BrickColor = BrickColor.new("Gold") |
| 913 | cyl.Material = Enum.Material.Glacier |
| 914 | cyl.MaterialVariant = "2022 Stud" |
| 915 | cyl.Anchored = true; cyl.Parent = workspace |
| 916 | local cuts = {} |
| 917 | local hole = Instance.new("Part") |
| 918 | hole.Shape = Enum.PartType.Cylinder |
| 919 | hole.Size = Vector3.new(0.3, 2.4, 2.4) |
| 920 | hole.CFrame = cyl.CFrame |
| 921 | hole.BrickColor = BrickColor.new("Gold") |
| 922 | hole.Material = Enum.Material.Glacier |
| 923 | hole.MaterialVariant = "2022 Stud" |
| 924 | hole.Anchored = true; hole.Parent = workspace |
| 925 | table.insert(cuts, hole) |
| 926 | if #cuts > 0 then |
| 927 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 928 | for _, c in ipairs(cuts) do c:Destroy() end |
| 929 | if ok and result then |
| 930 | cyl:Destroy() |
| 931 | result.Name = "Sys2_PlanetRing_0"; result.Anchored = true; result.Parent = model |
| 932 | else |
| 933 | cyl.Name = "Sys2_PlanetRing_0"; cyl.Parent = model |
| 934 | end |
| 935 | else |
| 936 | cyl.Name = "Sys2_PlanetRing_0"; cyl.Parent = model |
| 937 | end |
| 938 | end |
| 939 | do |
| 940 | local rightV = Vector3.new(1,0,0).Unit |
| 941 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 942 | local normalV = upV:Cross(rightV) |
| 943 | local pos = Vector3.new(-12, 0.56, 15) |
| 944 | local cyl = Instance.new("Part") |
| 945 | cyl.Shape = Enum.PartType.Cylinder |
| 946 | cyl.Size = Vector3.new(0.1, 5.4, 5.4) |
| 947 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 948 | cyl.BrickColor = BrickColor.new("Gold") |
| 949 | cyl.Material = Enum.Material.Glacier |
| 950 | cyl.MaterialVariant = "2022 Stud" |
| 951 | cyl.Anchored = true; cyl.Parent = workspace |
| 952 | local cuts = {} |
| 953 | local hole = Instance.new("Part") |
| 954 | hole.Shape = Enum.PartType.Cylinder |
| 955 | hole.Size = Vector3.new(0.3, 5, 5) |
| 956 | hole.CFrame = cyl.CFrame |
| 957 | hole.BrickColor = BrickColor.new("Gold") |
| 958 | hole.Material = Enum.Material.Glacier |
| 959 | hole.MaterialVariant = "2022 Stud" |
| 960 | hole.Anchored = true; hole.Parent = workspace |
| 961 | table.insert(cuts, hole) |
| 962 | if #cuts > 0 then |
| 963 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 964 | for _, c in ipairs(cuts) do c:Destroy() end |
| 965 | if ok and result then |
| 966 | cyl:Destroy() |
| 967 | result.Name = "Sys3_Ring_0"; result.Anchored = true; result.Parent = model |
| 968 | else |
| 969 | cyl.Name = "Sys3_Ring_0"; cyl.Parent = model |
| 970 | end |
| 971 | else |
| 972 | cyl.Name = "Sys3_Ring_0"; cyl.Parent = model |
| 973 | end |
| 974 | end |
| 975 | do |
| 976 | local rightV = Vector3.new(1,0,0).Unit |
| 977 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 978 | local normalV = upV:Cross(rightV) |
| 979 | local pos = Vector3.new(-12, 0.44, 15) |
| 980 | local cyl = Instance.new("Part") |
| 981 | cyl.Shape = Enum.PartType.Cylinder |
| 982 | cyl.Size = Vector3.new(0.1, 8.4, 8.4) |
| 983 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 984 | cyl.BrickColor = BrickColor.new("Gold") |
| 985 | cyl.Material = Enum.Material.Glacier |
| 986 | cyl.MaterialVariant = "2022 Stud" |
| 987 | cyl.Anchored = true; cyl.Parent = workspace |
| 988 | local cuts = {} |
| 989 | local hole = Instance.new("Part") |
| 990 | hole.Shape = Enum.PartType.Cylinder |
| 991 | hole.Size = Vector3.new(0.3, 8, 8) |
| 992 | hole.CFrame = cyl.CFrame |
| 993 | hole.BrickColor = BrickColor.new("Gold") |
| 994 | hole.Material = Enum.Material.Glacier |
| 995 | hole.MaterialVariant = "2022 Stud" |
| 996 | hole.Anchored = true; hole.Parent = workspace |
| 997 | table.insert(cuts, hole) |
| 998 | if #cuts > 0 then |
| 999 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1000 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1001 | if ok and result then |
| 1002 | cyl:Destroy() |
| 1003 | result.Name = "Sys3_Ring_1"; result.Anchored = true; result.Parent = model |
| 1004 | else |
| 1005 | cyl.Name = "Sys3_Ring_1"; cyl.Parent = model |
| 1006 | end |
| 1007 | else |
| 1008 | cyl.Name = "Sys3_Ring_1"; cyl.Parent = model |
| 1009 | end |
| 1010 | end |
| 1011 | do |
| 1012 | local rightV = Vector3.new(1,0,0).Unit |
| 1013 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1014 | local normalV = upV:Cross(rightV) |
| 1015 | local pos = Vector3.new(12, 0.48, -14) |
| 1016 | local cyl = Instance.new("Part") |
| 1017 | cyl.Shape = Enum.PartType.Cylinder |
| 1018 | cyl.Size = Vector3.new(0.1, 7.4, 7.4) |
| 1019 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1020 | cyl.BrickColor = BrickColor.new("Gold") |
| 1021 | cyl.Material = Enum.Material.Glacier |
| 1022 | cyl.MaterialVariant = "2022 Stud" |
| 1023 | cyl.Anchored = true; cyl.Parent = workspace |
| 1024 | local cuts = {} |
| 1025 | local hole = Instance.new("Part") |
| 1026 | hole.Shape = Enum.PartType.Cylinder |
| 1027 | hole.Size = Vector3.new(0.3, 7, 7) |
| 1028 | hole.CFrame = cyl.CFrame |
| 1029 | hole.BrickColor = BrickColor.new("Gold") |
| 1030 | hole.Material = Enum.Material.Glacier |
| 1031 | hole.MaterialVariant = "2022 Stud" |
| 1032 | hole.Anchored = true; hole.Parent = workspace |
| 1033 | table.insert(cuts, hole) |
| 1034 | if #cuts > 0 then |
| 1035 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1036 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1037 | if ok and result then |
| 1038 | cyl:Destroy() |
| 1039 | result.Name = "Sys4_Ring_0"; result.Anchored = true; result.Parent = model |
| 1040 | else |
| 1041 | cyl.Name = "Sys4_Ring_0"; cyl.Parent = model |
| 1042 | end |
| 1043 | else |
| 1044 | cyl.Name = "Sys4_Ring_0"; cyl.Parent = model |
| 1045 | end |
| 1046 | end |
| 1047 | do |
| 1048 | local rightV = Vector3.new(1,0,0).Unit |
| 1049 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1050 | local normalV = upV:Cross(rightV) |
| 1051 | local pos = Vector3.new(8.5, 0.63, -14) |
| 1052 | local cyl = Instance.new("Part") |
| 1053 | cyl.Shape = Enum.PartType.Cylinder |
| 1054 | cyl.Size = Vector3.new(0.1, 2.64, 2.64) |
| 1055 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1056 | cyl.BrickColor = BrickColor.new("Gold") |
| 1057 | cyl.Material = Enum.Material.Glacier |
| 1058 | cyl.MaterialVariant = "2022 Stud" |
| 1059 | cyl.Anchored = true; cyl.Parent = workspace |
| 1060 | local cuts = {} |
| 1061 | local hole = Instance.new("Part") |
| 1062 | hole.Shape = Enum.PartType.Cylinder |
| 1063 | hole.Size = Vector3.new(0.3, 1.76, 1.76) |
| 1064 | hole.CFrame = cyl.CFrame |
| 1065 | hole.BrickColor = BrickColor.new("Gold") |
| 1066 | hole.Material = Enum.Material.Glacier |
| 1067 | hole.MaterialVariant = "2022 Stud" |
| 1068 | hole.Anchored = true; hole.Parent = workspace |
| 1069 | table.insert(cuts, hole) |
| 1070 | if #cuts > 0 then |
| 1071 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1072 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1073 | if ok and result then |
| 1074 | cyl:Destroy() |
| 1075 | result.Name = "Sys4_PlanetRing_0"; result.Anchored = true; result.Parent = model |
| 1076 | else |
| 1077 | cyl.Name = "Sys4_PlanetRing_0"; cyl.Parent = model |
| 1078 | end |
| 1079 | else |
| 1080 | cyl.Name = "Sys4_PlanetRing_0"; cyl.Parent = model |
| 1081 | end |
| 1082 | end |
| 1083 | do |
| 1084 | local rightV = Vector3.new(1,0,0).Unit |
| 1085 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1086 | local normalV = upV:Cross(rightV) |
| 1087 | local pos = Vector3.new(20, 0.4, -2) |
| 1088 | local cyl = Instance.new("Part") |
| 1089 | cyl.Shape = Enum.PartType.Cylinder |
| 1090 | cyl.Size = Vector3.new(0.1, 4.4, 4.4) |
| 1091 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1092 | cyl.BrickColor = BrickColor.new("Gold") |
| 1093 | cyl.Material = Enum.Material.Glacier |
| 1094 | cyl.MaterialVariant = "2022 Stud" |
| 1095 | cyl.Anchored = true; cyl.Parent = workspace |
| 1096 | local cuts = {} |
| 1097 | local hole = Instance.new("Part") |
| 1098 | hole.Shape = Enum.PartType.Cylinder |
| 1099 | hole.Size = Vector3.new(0.3, 4, 4) |
| 1100 | hole.CFrame = cyl.CFrame |
| 1101 | hole.BrickColor = BrickColor.new("Gold") |
| 1102 | hole.Material = Enum.Material.Glacier |
| 1103 | hole.MaterialVariant = "2022 Stud" |
| 1104 | hole.Anchored = true; hole.Parent = workspace |
| 1105 | table.insert(cuts, hole) |
| 1106 | if #cuts > 0 then |
| 1107 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1108 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1109 | if ok and result then |
| 1110 | cyl:Destroy() |
| 1111 | result.Name = "Sys5_Ring_0"; result.Anchored = true; result.Parent = model |
| 1112 | else |
| 1113 | cyl.Name = "Sys5_Ring_0"; cyl.Parent = model |
| 1114 | end |
| 1115 | else |
| 1116 | cyl.Name = "Sys5_Ring_0"; cyl.Parent = model |
| 1117 | end |
| 1118 | end |
| 1119 | do |
| 1120 | local rightV = Vector3.new(1,0,0).Unit |
| 1121 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1122 | local normalV = upV:Cross(rightV) |
| 1123 | local pos = Vector3.new(20, 0.4, -2) |
| 1124 | local cyl = Instance.new("Part") |
| 1125 | cyl.Shape = Enum.PartType.Cylinder |
| 1126 | cyl.Size = Vector3.new(0.1, 7.4, 7.4) |
| 1127 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1128 | cyl.BrickColor = BrickColor.new("Gold") |
| 1129 | cyl.Material = Enum.Material.Glacier |
| 1130 | cyl.MaterialVariant = "2022 Stud" |
| 1131 | cyl.Anchored = true; cyl.Parent = workspace |
| 1132 | local cuts = {} |
| 1133 | local hole = Instance.new("Part") |
| 1134 | hole.Shape = Enum.PartType.Cylinder |
| 1135 | hole.Size = Vector3.new(0.3, 7, 7) |
| 1136 | hole.CFrame = cyl.CFrame |
| 1137 | hole.BrickColor = BrickColor.new("Gold") |
| 1138 | hole.Material = Enum.Material.Glacier |
| 1139 | hole.MaterialVariant = "2022 Stud" |
| 1140 | hole.Anchored = true; hole.Parent = workspace |
| 1141 | table.insert(cuts, hole) |
| 1142 | if #cuts > 0 then |
| 1143 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1144 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1145 | if ok and result then |
| 1146 | cyl:Destroy() |
| 1147 | result.Name = "Sys5_Ring_1"; result.Anchored = true; result.Parent = model |
| 1148 | else |
| 1149 | cyl.Name = "Sys5_Ring_1"; cyl.Parent = model |
| 1150 | end |
| 1151 | else |
| 1152 | cyl.Name = "Sys5_Ring_1"; cyl.Parent = model |
| 1153 | end |
| 1154 | end |
| 1155 | model.PrimaryPart = model:FindFirstChild("GalaxyBase_Outer") |
| 1156 | print("HyperdriveStarMap built: " .. #model:GetChildren() .. " parts") |
Loading comments...