Loading model...
by Edward Dickson · 5/10/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: CrystalEgg |
| 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 = "CrystalEgg" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright violet"] = "2022 Stud", |
| 25 | ["Cyan"] = "2022 Stud", |
| 26 | ["Electric blue"] = "2022 Stud", |
| 27 | ["Gold"] = "2022 Stud", |
| 28 | ["Institutional white"] = "2022 Stud", |
| 29 | ["Lapis"] = "2022 Stud", |
| 30 | ["Lavender"] = "2022 Stud", |
| 31 | ["Pastel violet"] = "2022 Stud", |
| 32 | ["Pearl"] = "2022 Stud", |
| 33 | } |
| 34 | do |
| 35 | local p = Instance.new("Part") |
| 36 | p.Shape = Enum.PartType.Cylinder |
| 37 | p.Name = "EggBase1" |
| 38 | p.Size = Vector3.new(2, 6, 6) |
| 39 | p.CFrame = CFrame.new(0, 1.88, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 40 | p.BrickColor = BrickColor.new("Electric blue") |
| 41 | p.Material = Enum.Material.Glacier |
| 42 | p.MaterialVariant = "2022 Stud" |
| 43 | p.Anchored = true |
| 44 | p.Parent = model |
| 45 | end |
| 46 | do |
| 47 | local p = Instance.new("Part") |
| 48 | p.Shape = Enum.PartType.Cylinder |
| 49 | p.Name = "EggBase2" |
| 50 | p.Size = Vector3.new(2, 10, 10) |
| 51 | p.CFrame = CFrame.new(0, 3.92, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 52 | p.BrickColor = BrickColor.new("Electric blue") |
| 53 | p.Material = Enum.Material.Glacier |
| 54 | p.MaterialVariant = "2022 Stud" |
| 55 | p.Anchored = true |
| 56 | p.Parent = model |
| 57 | end |
| 58 | do |
| 59 | local p = Instance.new("Part") |
| 60 | p.Shape = Enum.PartType.Cylinder |
| 61 | p.Name = "EggBase3" |
| 62 | p.Size = Vector3.new(4, 13, 13) |
| 63 | p.CFrame = CFrame.new(0, 6.96, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 64 | p.BrickColor = BrickColor.new("Cyan") |
| 65 | p.Material = Enum.Material.Glacier |
| 66 | p.MaterialVariant = "2022 Stud" |
| 67 | p.Anchored = true |
| 68 | p.Parent = model |
| 69 | end |
| 70 | do |
| 71 | local p = Instance.new("Part") |
| 72 | p.Shape = Enum.PartType.Cylinder |
| 73 | p.Name = "EggBase4" |
| 74 | p.Size = Vector3.new(4, 14, 14) |
| 75 | p.CFrame = CFrame.new(0, 11, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 76 | p.BrickColor = BrickColor.new("Electric blue") |
| 77 | p.Material = Enum.Material.Glacier |
| 78 | p.MaterialVariant = "2022 Stud" |
| 79 | p.Anchored = true |
| 80 | p.Parent = model |
| 81 | end |
| 82 | do |
| 83 | local p = Instance.new("Part") |
| 84 | p.Shape = Enum.PartType.Cylinder |
| 85 | p.Name = "EggBase5" |
| 86 | p.Size = Vector3.new(3, 12, 12) |
| 87 | p.CFrame = CFrame.new(0, 14.54, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 88 | p.BrickColor = BrickColor.new("Cyan") |
| 89 | p.Material = Enum.Material.Glacier |
| 90 | p.MaterialVariant = "2022 Stud" |
| 91 | p.Anchored = true |
| 92 | p.Parent = model |
| 93 | end |
| 94 | do |
| 95 | local p = Instance.new("Part") |
| 96 | p.Shape = Enum.PartType.Cylinder |
| 97 | p.Name = "EggBase6" |
| 98 | p.Size = Vector3.new(2, 9, 9) |
| 99 | p.CFrame = CFrame.new(0, 17.08, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 100 | p.BrickColor = BrickColor.new("Electric blue") |
| 101 | p.Material = Enum.Material.Glacier |
| 102 | p.MaterialVariant = "2022 Stud" |
| 103 | p.Anchored = true |
| 104 | p.Parent = model |
| 105 | end |
| 106 | do |
| 107 | local p = Instance.new("Part") |
| 108 | p.Shape = Enum.PartType.Cylinder |
| 109 | p.Name = "EggBase7" |
| 110 | p.Size = Vector3.new(2, 6, 6) |
| 111 | p.CFrame = CFrame.new(0, 19.12, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 112 | p.BrickColor = BrickColor.new("Cyan") |
| 113 | p.Material = Enum.Material.Glacier |
| 114 | p.MaterialVariant = "2022 Stud" |
| 115 | p.Anchored = true |
| 116 | p.Parent = model |
| 117 | end |
| 118 | do |
| 119 | local p = Instance.new("Part") |
| 120 | p.Shape = Enum.PartType.Cylinder |
| 121 | p.Name = "EggBase8" |
| 122 | p.Size = Vector3.new(1, 3, 3) |
| 123 | p.CFrame = CFrame.new(0, 20.66, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 124 | p.BrickColor = BrickColor.new("Electric blue") |
| 125 | p.Material = Enum.Material.Glacier |
| 126 | p.MaterialVariant = "2022 Stud" |
| 127 | p.Anchored = true |
| 128 | p.Parent = model |
| 129 | end |
| 130 | do |
| 131 | local p = Instance.new("Part") |
| 132 | p.Shape = Enum.PartType.Cylinder |
| 133 | p.Name = "Glow1" |
| 134 | p.Size = Vector3.new(0.5, 14.2, 14.2) |
| 135 | p.CFrame = CFrame.new(0, 9, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 136 | p.BrickColor = BrickColor.new("Toothpaste") |
| 137 | p.Material = Enum.Material.Neon |
| 138 | p.Anchored = true |
| 139 | p.Parent = model |
| 140 | end |
| 141 | do |
| 142 | local p = Instance.new("Part") |
| 143 | p.Shape = Enum.PartType.Cylinder |
| 144 | p.Name = "Glow2" |
| 145 | p.Size = Vector3.new(0.5, 13.2, 13.2) |
| 146 | p.CFrame = CFrame.new(0, 13, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 147 | p.BrickColor = BrickColor.new("Toothpaste") |
| 148 | p.Material = Enum.Material.Neon |
| 149 | p.Anchored = true |
| 150 | p.Parent = model |
| 151 | end |
| 152 | do |
| 153 | local p = Instance.new("Part") |
| 154 | p.Shape = Enum.PartType.Cylinder |
| 155 | p.Name = "Glow3" |
| 156 | p.Size = Vector3.new(0.5, 11.8, 11.8) |
| 157 | p.CFrame = CFrame.new(0, 5.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 158 | p.BrickColor = BrickColor.new("Toothpaste") |
| 159 | p.Material = Enum.Material.Neon |
| 160 | p.Anchored = true |
| 161 | p.Parent = model |
| 162 | end |
| 163 | do |
| 164 | local p = Instance.new("Part") |
| 165 | p.Name = "CrystalTR1" |
| 166 | p.Size = Vector3.new(3, 7, 3) |
| 167 | p.CFrame = CFrame.new(3.5, 17, 2) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(-25)) |
| 168 | p.BrickColor = BrickColor.new("Bright violet") |
| 169 | p.Material = Enum.Material.Glacier |
| 170 | p.MaterialVariant = "2022 Stud" |
| 171 | p.Anchored = true |
| 172 | p.Parent = model |
| 173 | end |
| 174 | do |
| 175 | local p = Instance.new("Part") |
| 176 | p.Name = "CrystalTR2" |
| 177 | p.Size = Vector3.new(2.5, 6, 2.5) |
| 178 | p.CFrame = CFrame.new(5, 15, -1) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-35)) |
| 179 | p.BrickColor = BrickColor.new("Lapis") |
| 180 | p.Material = Enum.Material.Glacier |
| 181 | p.MaterialVariant = "2022 Stud" |
| 182 | p.Anchored = true |
| 183 | p.Parent = model |
| 184 | end |
| 185 | do |
| 186 | local p = Instance.new("Part") |
| 187 | p.Name = "CrystalTR3" |
| 188 | p.Size = Vector3.new(2, 5, 2) |
| 189 | p.CFrame = CFrame.new(2, 18.5, -2.5) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-15)) |
| 190 | p.BrickColor = BrickColor.new("Pastel violet") |
| 191 | p.Material = Enum.Material.Glacier |
| 192 | p.MaterialVariant = "2022 Stud" |
| 193 | p.Anchored = true |
| 194 | p.Parent = model |
| 195 | end |
| 196 | do |
| 197 | local p = Instance.new("Part") |
| 198 | p.Name = "CrystalTR4" |
| 199 | p.Size = Vector3.new(1.5, 4, 1.5) |
| 200 | p.CFrame = CFrame.new(1, 19.5, 1) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-10)) |
| 201 | p.BrickColor = BrickColor.new("Lapis") |
| 202 | p.Material = Enum.Material.Glacier |
| 203 | p.MaterialVariant = "2022 Stud" |
| 204 | p.Anchored = true |
| 205 | p.Parent = model |
| 206 | end |
| 207 | do |
| 208 | local p = Instance.new("Part") |
| 209 | p.Name = "CrystalBL1" |
| 210 | p.Size = Vector3.new(2.5, 6, 2.5) |
| 211 | p.CFrame = CFrame.new(-5.5, 7, 3) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(35)) |
| 212 | p.BrickColor = BrickColor.new("Lapis") |
| 213 | p.Material = Enum.Material.Glacier |
| 214 | p.MaterialVariant = "2022 Stud" |
| 215 | p.Anchored = true |
| 216 | p.Parent = model |
| 217 | end |
| 218 | do |
| 219 | local p = Instance.new("Part") |
| 220 | p.Name = "CrystalBL2" |
| 221 | p.Size = Vector3.new(3, 7, 3) |
| 222 | p.CFrame = CFrame.new(-6.5, 9, -1) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(45)) |
| 223 | p.BrickColor = BrickColor.new("Bright violet") |
| 224 | p.Material = Enum.Material.Glacier |
| 225 | p.MaterialVariant = "2022 Stud" |
| 226 | p.Anchored = true |
| 227 | p.Parent = model |
| 228 | end |
| 229 | do |
| 230 | local p = Instance.new("Part") |
| 231 | p.Name = "CrystalBL3" |
| 232 | p.Size = Vector3.new(2, 5, 2) |
| 233 | p.CFrame = CFrame.new(-4, 5, -3) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(25)) |
| 234 | p.BrickColor = BrickColor.new("Pastel violet") |
| 235 | p.Material = Enum.Material.Glacier |
| 236 | p.MaterialVariant = "2022 Stud" |
| 237 | p.Anchored = true |
| 238 | p.Parent = model |
| 239 | end |
| 240 | do |
| 241 | local p = Instance.new("Part") |
| 242 | p.Name = "CrystalB1" |
| 243 | p.Size = Vector3.new(3, 6, 3) |
| 244 | p.CFrame = CFrame.new(0, 14, 6) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)) |
| 245 | p.BrickColor = BrickColor.new("Bright violet") |
| 246 | p.Material = Enum.Material.Glacier |
| 247 | p.MaterialVariant = "2022 Stud" |
| 248 | p.Anchored = true |
| 249 | p.Parent = model |
| 250 | end |
| 251 | do |
| 252 | local p = Instance.new("Part") |
| 253 | p.Name = "CrystalB2" |
| 254 | p.Size = Vector3.new(2, 5, 2) |
| 255 | p.CFrame = CFrame.new(-3, 11, 6.5) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(20)) |
| 256 | p.BrickColor = BrickColor.new("Lapis") |
| 257 | p.Material = Enum.Material.Glacier |
| 258 | p.MaterialVariant = "2022 Stud" |
| 259 | p.Anchored = true |
| 260 | p.Parent = model |
| 261 | end |
| 262 | do |
| 263 | local p = Instance.new("Part") |
| 264 | p.Name = "CrystalB3" |
| 265 | p.Size = Vector3.new(2.5, 5.5, 2.5) |
| 266 | p.CFrame = CFrame.new(4, 10, 6) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(-25)) |
| 267 | p.BrickColor = BrickColor.new("Pastel violet") |
| 268 | p.Material = Enum.Material.Glacier |
| 269 | p.MaterialVariant = "2022 Stud" |
| 270 | p.Anchored = true |
| 271 | p.Parent = model |
| 272 | end |
| 273 | do |
| 274 | local p = Instance.new("Part") |
| 275 | p.Shape = Enum.PartType.Ball |
| 276 | p.Name = "CloudF1" |
| 277 | p.Size = Vector3.new(4.5, 4.5, 4.5) |
| 278 | p.CFrame = CFrame.new(0, 10, -6.5) |
| 279 | p.BrickColor = BrickColor.new("Pearl") |
| 280 | p.Material = Enum.Material.Glacier |
| 281 | p.MaterialVariant = "2022 Stud" |
| 282 | p.Anchored = true |
| 283 | p.Parent = model |
| 284 | end |
| 285 | do |
| 286 | local p = Instance.new("Part") |
| 287 | p.Shape = Enum.PartType.Ball |
| 288 | p.Name = "CloudF2" |
| 289 | p.Size = Vector3.new(3.5, 3.5, 3.5) |
| 290 | p.CFrame = CFrame.new(2.5, 8, -6) |
| 291 | p.BrickColor = BrickColor.new("Pearl") |
| 292 | p.Material = Enum.Material.Glacier |
| 293 | p.MaterialVariant = "2022 Stud" |
| 294 | p.Anchored = true |
| 295 | p.Parent = model |
| 296 | end |
| 297 | do |
| 298 | local p = Instance.new("Part") |
| 299 | p.Shape = Enum.PartType.Ball |
| 300 | p.Name = "CloudF3" |
| 301 | p.Size = Vector3.new(4, 4, 4) |
| 302 | p.CFrame = CFrame.new(-2.5, 11.5, -6) |
| 303 | p.BrickColor = BrickColor.new("Pearl") |
| 304 | p.Material = Enum.Material.Glacier |
| 305 | p.MaterialVariant = "2022 Stud" |
| 306 | p.Anchored = true |
| 307 | p.Parent = model |
| 308 | end |
| 309 | do |
| 310 | local p = Instance.new("Part") |
| 311 | p.Shape = Enum.PartType.Ball |
| 312 | p.Name = "CloudF4" |
| 313 | p.Size = Vector3.new(3, 3, 3) |
| 314 | p.CFrame = CFrame.new(3, 12.5, -5.5) |
| 315 | p.BrickColor = BrickColor.new("Institutional white") |
| 316 | p.Material = Enum.Material.Glacier |
| 317 | p.MaterialVariant = "2022 Stud" |
| 318 | p.Anchored = true |
| 319 | p.Parent = model |
| 320 | end |
| 321 | do |
| 322 | local p = Instance.new("Part") |
| 323 | p.Shape = Enum.PartType.Ball |
| 324 | p.Name = "CloudF5" |
| 325 | p.Size = Vector3.new(3, 3, 3) |
| 326 | p.CFrame = CFrame.new(-1, 7, -6.2) |
| 327 | p.BrickColor = BrickColor.new("Institutional white") |
| 328 | p.Material = Enum.Material.Glacier |
| 329 | p.MaterialVariant = "2022 Stud" |
| 330 | p.Anchored = true |
| 331 | p.Parent = model |
| 332 | end |
| 333 | do |
| 334 | local p = Instance.new("Part") |
| 335 | p.Shape = Enum.PartType.Ball |
| 336 | p.Name = "CloudBR1" |
| 337 | p.Size = Vector3.new(4, 4, 4) |
| 338 | p.CFrame = CFrame.new(4.5, 5.5, -4.5) |
| 339 | p.BrickColor = BrickColor.new("Pearl") |
| 340 | p.Material = Enum.Material.Glacier |
| 341 | p.MaterialVariant = "2022 Stud" |
| 342 | p.Anchored = true |
| 343 | p.Parent = model |
| 344 | end |
| 345 | do |
| 346 | local p = Instance.new("Part") |
| 347 | p.Shape = Enum.PartType.Ball |
| 348 | p.Name = "CloudBR2" |
| 349 | p.Size = Vector3.new(3.5, 3.5, 3.5) |
| 350 | p.CFrame = CFrame.new(6, 7, -2.5) |
| 351 | p.BrickColor = BrickColor.new("Institutional white") |
| 352 | p.Material = Enum.Material.Glacier |
| 353 | p.MaterialVariant = "2022 Stud" |
| 354 | p.Anchored = true |
| 355 | p.Parent = model |
| 356 | end |
| 357 | do |
| 358 | local p = Instance.new("Part") |
| 359 | p.Shape = Enum.PartType.Ball |
| 360 | p.Name = "CloudBR3" |
| 361 | p.Size = Vector3.new(3, 3, 3) |
| 362 | p.CFrame = CFrame.new(3, 3.5, -3) |
| 363 | p.BrickColor = BrickColor.new("Pearl") |
| 364 | p.Material = Enum.Material.Glacier |
| 365 | p.MaterialVariant = "2022 Stud" |
| 366 | p.Anchored = true |
| 367 | p.Parent = model |
| 368 | end |
| 369 | do |
| 370 | local p = Instance.new("Part") |
| 371 | p.Shape = Enum.PartType.Ball |
| 372 | p.Name = "CloudTL1" |
| 373 | p.Size = Vector3.new(3.5, 3.5, 3.5) |
| 374 | p.CFrame = CFrame.new(-3.5, 16, -3.5) |
| 375 | p.BrickColor = BrickColor.new("Pearl") |
| 376 | p.Material = Enum.Material.Glacier |
| 377 | p.MaterialVariant = "2022 Stud" |
| 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 = "CloudTL2" |
| 385 | p.Size = Vector3.new(3, 3, 3) |
| 386 | p.CFrame = CFrame.new(-1.5, 18, -2.5) |
| 387 | p.BrickColor = BrickColor.new("Institutional white") |
| 388 | p.Material = Enum.Material.Glacier |
| 389 | p.MaterialVariant = "2022 Stud" |
| 390 | p.Anchored = true |
| 391 | p.Parent = model |
| 392 | end |
| 393 | do |
| 394 | local p = Instance.new("Part") |
| 395 | p.Shape = Enum.PartType.Ball |
| 396 | p.Name = "CloudTL3" |
| 397 | p.Size = Vector3.new(3, 3, 3) |
| 398 | p.CFrame = CFrame.new(-4.5, 14, -2) |
| 399 | p.BrickColor = BrickColor.new("Pearl") |
| 400 | p.Material = Enum.Material.Glacier |
| 401 | p.MaterialVariant = "2022 Stud" |
| 402 | p.Anchored = true |
| 403 | p.Parent = model |
| 404 | end |
| 405 | do |
| 406 | local p = Instance.new("WedgePart") |
| 407 | p.Name = "FeatherR1" |
| 408 | p.Size = Vector3.new(1, 7, 2.5) |
| 409 | p.CFrame = CFrame.new(7.5, 11, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(-25)) |
| 410 | p.BrickColor = BrickColor.new("Lavender") |
| 411 | p.Material = Enum.Material.Glacier |
| 412 | p.MaterialVariant = "2022 Stud" |
| 413 | p.Anchored = true |
| 414 | p.Parent = model |
| 415 | end |
| 416 | do |
| 417 | local p = Instance.new("WedgePart") |
| 418 | p.Name = "FeatherR2" |
| 419 | p.Size = Vector3.new(0.8, 5.5, 2) |
| 420 | p.CFrame = CFrame.new(6.5, 8.5, 2.5) * CFrame.Angles(math.rad(35), math.rad(0), math.rad(-35)) |
| 421 | p.BrickColor = BrickColor.new("Pastel violet") |
| 422 | p.Material = Enum.Material.Glacier |
| 423 | p.MaterialVariant = "2022 Stud" |
| 424 | p.Anchored = true |
| 425 | p.Parent = model |
| 426 | end |
| 427 | do |
| 428 | local p = Instance.new("WedgePart") |
| 429 | p.Name = "FeatherR3" |
| 430 | p.Size = Vector3.new(0.6, 4, 1.5) |
| 431 | p.CFrame = CFrame.new(8, 13, -1.5) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(-15)) |
| 432 | p.BrickColor = BrickColor.new("Lavender") |
| 433 | p.Material = Enum.Material.Glacier |
| 434 | p.MaterialVariant = "2022 Stud" |
| 435 | p.Anchored = true |
| 436 | p.Parent = model |
| 437 | end |
| 438 | do |
| 439 | local p = Instance.new("WedgePart") |
| 440 | p.Name = "FeatherL1" |
| 441 | p.Size = Vector3.new(1, 6, 2.5) |
| 442 | p.CFrame = CFrame.new(-7.5, 13, 0) * CFrame.Angles(math.rad(-15), math.rad(0), math.rad(25)) |
| 443 | p.BrickColor = BrickColor.new("Lavender") |
| 444 | p.Material = Enum.Material.Glacier |
| 445 | p.MaterialVariant = "2022 Stud" |
| 446 | p.Anchored = true |
| 447 | p.Parent = model |
| 448 | end |
| 449 | do |
| 450 | local p = Instance.new("WedgePart") |
| 451 | p.Name = "FeatherL2" |
| 452 | p.Size = Vector3.new(0.8, 5, 2) |
| 453 | p.CFrame = CFrame.new(-6.5, 15.5, 2) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(15)) |
| 454 | p.BrickColor = BrickColor.new("Pastel violet") |
| 455 | p.Material = Enum.Material.Glacier |
| 456 | p.MaterialVariant = "2022 Stud" |
| 457 | p.Anchored = true |
| 458 | p.Parent = model |
| 459 | end |
| 460 | do |
| 461 | local rightV = Vector3.new(1,0,0).Unit |
| 462 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 463 | local normalV = upV:Cross(rightV) |
| 464 | local pos = Vector3.new(0, 10, -6.8) |
| 465 | local cyl = Instance.new("Part") |
| 466 | cyl.Shape = Enum.PartType.Cylinder |
| 467 | cyl.Size = Vector3.new(0.4, 5.2, 5.2) |
| 468 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 469 | cyl.BrickColor = BrickColor.new("Gold") |
| 470 | cyl.Material = Enum.Material.Glacier |
| 471 | cyl.MaterialVariant = "2022 Stud" |
| 472 | cyl.Anchored = true; cyl.Parent = workspace |
| 473 | local cuts = {} |
| 474 | local hole = Instance.new("Part") |
| 475 | hole.Shape = Enum.PartType.Cylinder |
| 476 | hole.Size = Vector3.new(0.6, 4.4, 4.4) |
| 477 | hole.CFrame = cyl.CFrame |
| 478 | hole.BrickColor = BrickColor.new("Gold") |
| 479 | hole.Material = Enum.Material.Glacier |
| 480 | hole.MaterialVariant = "2022 Stud" |
| 481 | hole.Anchored = true; hole.Parent = workspace |
| 482 | table.insert(cuts, hole) |
| 483 | local angBoxes = {} |
| 484 | do |
| 485 | local edgeDir = 1*rightV + 0*upV |
| 486 | local edgePerp = 0*rightV + 1*upV |
| 487 | local cut = Instance.new("Part") |
| 488 | cut.Size = Vector3.new(10.4, 0.6, 10.4) |
| 489 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 5.2 * edgePerp, edgeDir, normalV) |
| 490 | cut.BrickColor = BrickColor.new("Gold") |
| 491 | cut.Material = Enum.Material.Glacier |
| 492 | cut.MaterialVariant = "2022 Stud" |
| 493 | cut.Anchored = true; cut.Parent = workspace |
| 494 | table.insert(angBoxes, cut) |
| 495 | end |
| 496 | do |
| 497 | local edgeDir = -1*rightV + 0*upV |
| 498 | local edgePerp = 0*rightV + -1*upV |
| 499 | local cut = Instance.new("Part") |
| 500 | cut.Size = Vector3.new(10.4, 0.6, 10.4) |
| 501 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 5.2 * edgePerp, edgeDir, normalV) |
| 502 | cut.BrickColor = BrickColor.new("Gold") |
| 503 | cut.Material = Enum.Material.Glacier |
| 504 | cut.MaterialVariant = "2022 Stud" |
| 505 | cut.Anchored = true; cut.Parent = workspace |
| 506 | table.insert(angBoxes, cut) |
| 507 | end |
| 508 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 509 | if #cuts > 0 then |
| 510 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 511 | for _, c in ipairs(cuts) do c:Destroy() end |
| 512 | if ok and result then |
| 513 | cyl:Destroy() |
| 514 | result.Name = "Trim1"; result.Anchored = true; result.Parent = model |
| 515 | else |
| 516 | cyl.Name = "Trim1"; cyl.Parent = model |
| 517 | end |
| 518 | else |
| 519 | cyl.Name = "Trim1"; cyl.Parent = model |
| 520 | end |
| 521 | end |
| 522 | do |
| 523 | local rightV = Vector3.new(1,0,0).Unit |
| 524 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 525 | local normalV = upV:Cross(rightV) |
| 526 | local pos = Vector3.new(2.5, 8, -6.3) |
| 527 | local cyl = Instance.new("Part") |
| 528 | cyl.Shape = Enum.PartType.Cylinder |
| 529 | cyl.Size = Vector3.new(0.4, 4.2, 4.2) |
| 530 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 531 | cyl.BrickColor = BrickColor.new("Gold") |
| 532 | cyl.Material = Enum.Material.Glacier |
| 533 | cyl.MaterialVariant = "2022 Stud" |
| 534 | cyl.Anchored = true; cyl.Parent = workspace |
| 535 | local cuts = {} |
| 536 | local hole = Instance.new("Part") |
| 537 | hole.Shape = Enum.PartType.Cylinder |
| 538 | hole.Size = Vector3.new(0.6, 3.4, 3.4) |
| 539 | hole.CFrame = cyl.CFrame |
| 540 | hole.BrickColor = BrickColor.new("Gold") |
| 541 | hole.Material = Enum.Material.Glacier |
| 542 | hole.MaterialVariant = "2022 Stud" |
| 543 | hole.Anchored = true; hole.Parent = workspace |
| 544 | table.insert(cuts, hole) |
| 545 | local angBoxes = {} |
| 546 | do |
| 547 | local edgeDir = -1*rightV + 0*upV |
| 548 | local edgePerp = 0*rightV + -1*upV |
| 549 | local cut = Instance.new("Part") |
| 550 | cut.Size = Vector3.new(8.4, 0.6, 8.4) |
| 551 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4.2 * edgePerp, edgeDir, normalV) |
| 552 | cut.BrickColor = BrickColor.new("Gold") |
| 553 | cut.Material = Enum.Material.Glacier |
| 554 | cut.MaterialVariant = "2022 Stud" |
| 555 | cut.Anchored = true; cut.Parent = workspace |
| 556 | table.insert(angBoxes, cut) |
| 557 | end |
| 558 | do |
| 559 | local edgeDir = 1*rightV + 0*upV |
| 560 | local edgePerp = 0*rightV + 1*upV |
| 561 | local cut = Instance.new("Part") |
| 562 | cut.Size = Vector3.new(8.4, 0.6, 8.4) |
| 563 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4.2 * edgePerp, edgeDir, normalV) |
| 564 | cut.BrickColor = BrickColor.new("Gold") |
| 565 | cut.Material = Enum.Material.Glacier |
| 566 | cut.MaterialVariant = "2022 Stud" |
| 567 | cut.Anchored = true; cut.Parent = workspace |
| 568 | table.insert(angBoxes, cut) |
| 569 | end |
| 570 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 571 | if #cuts > 0 then |
| 572 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 573 | for _, c in ipairs(cuts) do c:Destroy() end |
| 574 | if ok and result then |
| 575 | cyl:Destroy() |
| 576 | result.Name = "Trim2"; result.Anchored = true; result.Parent = model |
| 577 | else |
| 578 | cyl.Name = "Trim2"; cyl.Parent = model |
| 579 | end |
| 580 | else |
| 581 | cyl.Name = "Trim2"; cyl.Parent = model |
| 582 | end |
| 583 | end |
| 584 | do |
| 585 | local rightV = Vector3.new(1,0,0).Unit |
| 586 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 587 | local normalV = upV:Cross(rightV) |
| 588 | local pos = Vector3.new(-2.5, 11.5, -6.3) |
| 589 | local cyl = Instance.new("Part") |
| 590 | cyl.Shape = Enum.PartType.Cylinder |
| 591 | cyl.Size = Vector3.new(0.4, 4.8, 4.8) |
| 592 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 593 | cyl.BrickColor = BrickColor.new("Gold") |
| 594 | cyl.Material = Enum.Material.Glacier |
| 595 | cyl.MaterialVariant = "2022 Stud" |
| 596 | cyl.Anchored = true; cyl.Parent = workspace |
| 597 | local cuts = {} |
| 598 | local hole = Instance.new("Part") |
| 599 | hole.Shape = Enum.PartType.Cylinder |
| 600 | hole.Size = Vector3.new(0.6, 4, 4) |
| 601 | hole.CFrame = cyl.CFrame |
| 602 | hole.BrickColor = BrickColor.new("Gold") |
| 603 | hole.Material = Enum.Material.Glacier |
| 604 | hole.MaterialVariant = "2022 Stud" |
| 605 | hole.Anchored = true; hole.Parent = workspace |
| 606 | table.insert(cuts, hole) |
| 607 | local angBoxes = {} |
| 608 | do |
| 609 | local edgeDir = 0*rightV + 1*upV |
| 610 | local edgePerp = -1*rightV + 0*upV |
| 611 | local cut = Instance.new("Part") |
| 612 | cut.Size = Vector3.new(9.6, 0.6, 9.6) |
| 613 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4.8 * edgePerp, edgeDir, normalV) |
| 614 | cut.BrickColor = BrickColor.new("Gold") |
| 615 | cut.Material = Enum.Material.Glacier |
| 616 | cut.MaterialVariant = "2022 Stud" |
| 617 | cut.Anchored = true; cut.Parent = workspace |
| 618 | table.insert(angBoxes, cut) |
| 619 | end |
| 620 | do |
| 621 | local edgeDir = 0*rightV + -1*upV |
| 622 | local edgePerp = 1*rightV + 0*upV |
| 623 | local cut = Instance.new("Part") |
| 624 | cut.Size = Vector3.new(9.6, 0.6, 9.6) |
| 625 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4.8 * edgePerp, edgeDir, normalV) |
| 626 | cut.BrickColor = BrickColor.new("Gold") |
| 627 | cut.Material = Enum.Material.Glacier |
| 628 | cut.MaterialVariant = "2022 Stud" |
| 629 | cut.Anchored = true; cut.Parent = workspace |
| 630 | table.insert(angBoxes, cut) |
| 631 | end |
| 632 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 633 | if #cuts > 0 then |
| 634 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 635 | for _, c in ipairs(cuts) do c:Destroy() end |
| 636 | if ok and result then |
| 637 | cyl:Destroy() |
| 638 | result.Name = "Trim3"; result.Anchored = true; result.Parent = model |
| 639 | else |
| 640 | cyl.Name = "Trim3"; cyl.Parent = model |
| 641 | end |
| 642 | else |
| 643 | cyl.Name = "Trim3"; cyl.Parent = model |
| 644 | end |
| 645 | end |
| 646 | do |
| 647 | local rightV = Vector3.new(1,0,0).Unit |
| 648 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 649 | local normalV = upV:Cross(rightV) |
| 650 | local pos = Vector3.new(4.5, 5.5, -4.8) |
| 651 | local cyl = Instance.new("Part") |
| 652 | cyl.Shape = Enum.PartType.Cylinder |
| 653 | cyl.Size = Vector3.new(0.4, 4.8, 4.8) |
| 654 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 655 | cyl.BrickColor = BrickColor.new("Gold") |
| 656 | cyl.Material = Enum.Material.Glacier |
| 657 | cyl.MaterialVariant = "2022 Stud" |
| 658 | cyl.Anchored = true; cyl.Parent = workspace |
| 659 | local cuts = {} |
| 660 | local hole = Instance.new("Part") |
| 661 | hole.Shape = Enum.PartType.Cylinder |
| 662 | hole.Size = Vector3.new(0.6, 4, 4) |
| 663 | hole.CFrame = cyl.CFrame |
| 664 | hole.BrickColor = BrickColor.new("Gold") |
| 665 | hole.Material = Enum.Material.Glacier |
| 666 | hole.MaterialVariant = "2022 Stud" |
| 667 | hole.Anchored = true; hole.Parent = workspace |
| 668 | table.insert(cuts, hole) |
| 669 | local angBoxes = {} |
| 670 | do |
| 671 | local edgeDir = 0.707107*rightV + -0.707107*upV |
| 672 | local edgePerp = 0.707107*rightV + 0.707107*upV |
| 673 | local cut = Instance.new("Part") |
| 674 | cut.Size = Vector3.new(9.6, 0.6, 9.6) |
| 675 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4.8 * edgePerp, edgeDir, normalV) |
| 676 | cut.BrickColor = BrickColor.new("Gold") |
| 677 | cut.Material = Enum.Material.Glacier |
| 678 | cut.MaterialVariant = "2022 Stud" |
| 679 | cut.Anchored = true; cut.Parent = workspace |
| 680 | table.insert(angBoxes, cut) |
| 681 | end |
| 682 | do |
| 683 | local edgeDir = -0.707107*rightV + 0.707107*upV |
| 684 | local edgePerp = -0.707107*rightV + -0.707107*upV |
| 685 | local cut = Instance.new("Part") |
| 686 | cut.Size = Vector3.new(9.6, 0.6, 9.6) |
| 687 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4.8 * edgePerp, edgeDir, normalV) |
| 688 | cut.BrickColor = BrickColor.new("Gold") |
| 689 | cut.Material = Enum.Material.Glacier |
| 690 | cut.MaterialVariant = "2022 Stud" |
| 691 | cut.Anchored = true; cut.Parent = workspace |
| 692 | table.insert(angBoxes, cut) |
| 693 | end |
| 694 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 695 | if #cuts > 0 then |
| 696 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 697 | for _, c in ipairs(cuts) do c:Destroy() end |
| 698 | if ok and result then |
| 699 | cyl:Destroy() |
| 700 | result.Name = "Trim4"; result.Anchored = true; result.Parent = model |
| 701 | else |
| 702 | cyl.Name = "Trim4"; cyl.Parent = model |
| 703 | end |
| 704 | else |
| 705 | cyl.Name = "Trim4"; cyl.Parent = model |
| 706 | end |
| 707 | end |
| 708 | do |
| 709 | local rightV = Vector3.new(1,0,0).Unit |
| 710 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 711 | local normalV = upV:Cross(rightV) |
| 712 | local pos = Vector3.new(-3.5, 16, -3.8) |
| 713 | local cyl = Instance.new("Part") |
| 714 | cyl.Shape = Enum.PartType.Cylinder |
| 715 | cyl.Size = Vector3.new(0.4, 4.2, 4.2) |
| 716 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 717 | cyl.BrickColor = BrickColor.new("Gold") |
| 718 | cyl.Material = Enum.Material.Glacier |
| 719 | cyl.MaterialVariant = "2022 Stud" |
| 720 | cyl.Anchored = true; cyl.Parent = workspace |
| 721 | local cuts = {} |
| 722 | local hole = Instance.new("Part") |
| 723 | hole.Shape = Enum.PartType.Cylinder |
| 724 | hole.Size = Vector3.new(0.6, 3.4, 3.4) |
| 725 | hole.CFrame = cyl.CFrame |
| 726 | hole.BrickColor = BrickColor.new("Gold") |
| 727 | hole.Material = Enum.Material.Glacier |
| 728 | hole.MaterialVariant = "2022 Stud" |
| 729 | hole.Anchored = true; hole.Parent = workspace |
| 730 | table.insert(cuts, hole) |
| 731 | local angBoxes = {} |
| 732 | do |
| 733 | local edgeDir = 0.707107*rightV + 0.707107*upV |
| 734 | local edgePerp = -0.707107*rightV + 0.707107*upV |
| 735 | local cut = Instance.new("Part") |
| 736 | cut.Size = Vector3.new(8.4, 0.6, 8.4) |
| 737 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4.2 * edgePerp, edgeDir, normalV) |
| 738 | cut.BrickColor = BrickColor.new("Gold") |
| 739 | cut.Material = Enum.Material.Glacier |
| 740 | cut.MaterialVariant = "2022 Stud" |
| 741 | cut.Anchored = true; cut.Parent = workspace |
| 742 | table.insert(angBoxes, cut) |
| 743 | end |
| 744 | do |
| 745 | local edgeDir = -0.707107*rightV + -0.707107*upV |
| 746 | local edgePerp = 0.707107*rightV + -0.707107*upV |
| 747 | local cut = Instance.new("Part") |
| 748 | cut.Size = Vector3.new(8.4, 0.6, 8.4) |
| 749 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4.2 * edgePerp, edgeDir, normalV) |
| 750 | cut.BrickColor = BrickColor.new("Gold") |
| 751 | cut.Material = Enum.Material.Glacier |
| 752 | cut.MaterialVariant = "2022 Stud" |
| 753 | cut.Anchored = true; cut.Parent = workspace |
| 754 | table.insert(angBoxes, cut) |
| 755 | end |
| 756 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 757 | if #cuts > 0 then |
| 758 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 759 | for _, c in ipairs(cuts) do c:Destroy() end |
| 760 | if ok and result then |
| 761 | cyl:Destroy() |
| 762 | result.Name = "Trim5"; result.Anchored = true; result.Parent = model |
| 763 | else |
| 764 | cyl.Name = "Trim5"; cyl.Parent = model |
| 765 | end |
| 766 | else |
| 767 | cyl.Name = "Trim5"; cyl.Parent = model |
| 768 | end |
| 769 | end |
| 770 | model.PrimaryPart = model:FindFirstChild("EggBase4") |
| 771 | print("CrystalEgg built: " .. #model:GetChildren() .. " parts") |
Loading comments...