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