Loading model...
by Prime AirGhost · 9/30/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: PhoenixEgg |
| 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 = "PhoenixEgg" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright yellow"] = "2022 Big Stud", |
| 25 | ["Deep orange"] = "2022 Stud", |
| 26 | ["Electric blue"] = "2022 Stud", |
| 27 | ["Institutional white"] = "2022 Stud", |
| 28 | ["Toothpaste"] = "2022 Stud", |
| 29 | } |
| 30 | do |
| 31 | local p = Instance.new("Part") |
| 32 | p.Name = "Egg_Base" |
| 33 | p.Size = Vector3.new(3, 1, 3) |
| 34 | p.CFrame = CFrame.new(0, 1, 0) |
| 35 | p.BrickColor = BrickColor.new("Institutional white") |
| 36 | p.Material = Enum.Material.Glacier |
| 37 | p.MaterialVariant = "2022 Stud" |
| 38 | p.Anchored = true |
| 39 | p.Parent = model |
| 40 | end |
| 41 | do |
| 42 | local p = Instance.new("Part") |
| 43 | p.Name = "Egg_Lower" |
| 44 | p.Size = Vector3.new(3.8, 1.5, 3.8) |
| 45 | p.CFrame = CFrame.new(0, 2, 0) |
| 46 | p.BrickColor = BrickColor.new("Institutional white") |
| 47 | p.Material = Enum.Material.Glacier |
| 48 | p.MaterialVariant = "2022 Stud" |
| 49 | p.Anchored = true |
| 50 | p.Parent = model |
| 51 | end |
| 52 | do |
| 53 | local p = Instance.new("Part") |
| 54 | p.Name = "Egg_Mid" |
| 55 | p.Size = Vector3.new(4.2, 2, 4.2) |
| 56 | p.CFrame = CFrame.new(0, 3.5, 0) |
| 57 | p.BrickColor = BrickColor.new("Institutional white") |
| 58 | p.Material = Enum.Material.Glacier |
| 59 | p.MaterialVariant = "2022 Stud" |
| 60 | p.Anchored = true |
| 61 | p.Parent = model |
| 62 | end |
| 63 | do |
| 64 | local p = Instance.new("Part") |
| 65 | p.Name = "Egg_UpperMid" |
| 66 | p.Size = Vector3.new(3.8, 1.5, 3.8) |
| 67 | p.CFrame = CFrame.new(0, 5.5, 0) |
| 68 | p.BrickColor = BrickColor.new("Institutional white") |
| 69 | p.Material = Enum.Material.Glacier |
| 70 | p.MaterialVariant = "2022 Stud" |
| 71 | p.Anchored = true |
| 72 | p.Parent = model |
| 73 | end |
| 74 | do |
| 75 | local p = Instance.new("Part") |
| 76 | p.Name = "Egg_Upper" |
| 77 | p.Size = Vector3.new(3, 1.2, 3) |
| 78 | p.CFrame = CFrame.new(0, 7, 0) |
| 79 | p.BrickColor = BrickColor.new("Institutional white") |
| 80 | p.Material = Enum.Material.Glacier |
| 81 | p.MaterialVariant = "2022 Stud" |
| 82 | p.Anchored = true |
| 83 | p.Parent = model |
| 84 | end |
| 85 | do |
| 86 | local p = Instance.new("Part") |
| 87 | p.Name = "Egg_Top" |
| 88 | p.Size = Vector3.new(2, 1, 2) |
| 89 | p.CFrame = CFrame.new(0, 8, 0) |
| 90 | p.BrickColor = BrickColor.new("Institutional white") |
| 91 | p.Material = Enum.Material.Glacier |
| 92 | p.MaterialVariant = "2022 Stud" |
| 93 | p.Anchored = true |
| 94 | p.Parent = model |
| 95 | end |
| 96 | do |
| 97 | local p = Instance.new("Part") |
| 98 | p.Name = "Egg_Tip" |
| 99 | p.Size = Vector3.new(1, 0.6, 1) |
| 100 | p.CFrame = CFrame.new(0, 8.84, 0) |
| 101 | p.BrickColor = BrickColor.new("Institutional white") |
| 102 | p.Material = Enum.Material.Glacier |
| 103 | p.MaterialVariant = "2022 Stud" |
| 104 | p.Anchored = true |
| 105 | p.Parent = model |
| 106 | end |
| 107 | do |
| 108 | local p = Instance.new("Part") |
| 109 | p.Name = "Wisp_0" |
| 110 | p.Size = Vector3.new(0.3, 0.775029, 0.3) |
| 111 | p.CFrame = CFrame.new(-3.20097, 2.60004, -3.84106) * CFrame.Angles(math.rad(-16.6074), math.rad(265.13), math.rad(10.602)) |
| 112 | p.BrickColor = BrickColor.new("Bright yellow") |
| 113 | p.Material = Enum.Material.Neon |
| 114 | p.Anchored = true |
| 115 | p.Parent = model |
| 116 | end |
| 117 | do |
| 118 | local p = Instance.new("Part") |
| 119 | p.Name = "Wisp_1" |
| 120 | p.Size = Vector3.new(0.3, 0.921922, 0.3) |
| 121 | p.CFrame = CFrame.new(3.89585, 2.84775, -3.13406) * CFrame.Angles(math.rad(-28.2122), math.rad(78.7097), math.rad(0.321317)) |
| 122 | p.BrickColor = BrickColor.new("Toothpaste") |
| 123 | p.Material = Enum.Material.Neon |
| 124 | p.Anchored = true |
| 125 | p.Parent = model |
| 126 | end |
| 127 | do |
| 128 | local p = Instance.new("Part") |
| 129 | p.Name = "Wisp_2" |
| 130 | p.Size = Vector3.new(0.3, 1.14988, 0.3) |
| 131 | p.CFrame = CFrame.new(4.93066, 3.29535, 0.829795) * CFrame.Angles(math.rad(2.69649), math.rad(79.3586), math.rad(5.35594)) |
| 132 | p.BrickColor = BrickColor.new("Bright yellow") |
| 133 | p.Material = Enum.Material.Neon |
| 134 | p.Anchored = true |
| 135 | p.Parent = model |
| 136 | end |
| 137 | do |
| 138 | local p = Instance.new("Part") |
| 139 | p.Name = "Wisp_3" |
| 140 | p.Size = Vector3.new(0.3, 1.30582, 0.3) |
| 141 | p.CFrame = CFrame.new(1.82397, 2.52599, -4.65544) * CFrame.Angles(math.rad(11.8884), math.rad(122.49), math.rad(-20.6712)) |
| 142 | p.BrickColor = BrickColor.new("Toothpaste") |
| 143 | p.Material = Enum.Material.Neon |
| 144 | p.Anchored = true |
| 145 | p.Parent = model |
| 146 | end |
| 147 | do |
| 148 | local p = Instance.new("Part") |
| 149 | p.Name = "Wisp_4" |
| 150 | p.Size = Vector3.new(0.3, 0.592746, 0.3) |
| 151 | p.CFrame = CFrame.new(4.8204, 3.84638, -1.32806) * CFrame.Angles(math.rad(-24.197), math.rad(305.098), math.rad(6.22356)) |
| 152 | p.BrickColor = BrickColor.new("Bright yellow") |
| 153 | p.Material = Enum.Material.Neon |
| 154 | p.Anchored = true |
| 155 | p.Parent = model |
| 156 | end |
| 157 | do |
| 158 | local p = Instance.new("Part") |
| 159 | p.Name = "Wisp_5" |
| 160 | p.Size = Vector3.new(0.3, 1.03623, 0.3) |
| 161 | p.CFrame = CFrame.new(1.75645, 5.41893, -4.68133) * CFrame.Angles(math.rad(28.3869), math.rad(136.272), math.rad(3.12244)) |
| 162 | p.BrickColor = BrickColor.new("Toothpaste") |
| 163 | p.Material = Enum.Material.Neon |
| 164 | p.Anchored = true |
| 165 | p.Parent = model |
| 166 | end |
| 167 | do |
| 168 | local p = Instance.new("Part") |
| 169 | p.Name = "Wisp_6" |
| 170 | p.Size = Vector3.new(0.3, 1.36171, 0.3) |
| 171 | p.CFrame = CFrame.new(2.39236, 4.97408, -4.39051) * CFrame.Angles(math.rad(4.64113), math.rad(253.646), math.rad(-27.2505)) |
| 172 | p.BrickColor = BrickColor.new("Bright yellow") |
| 173 | p.Material = Enum.Material.Neon |
| 174 | p.Anchored = true |
| 175 | p.Parent = model |
| 176 | end |
| 177 | do |
| 178 | local p = Instance.new("Part") |
| 179 | p.Name = "Wisp_7" |
| 180 | p.Size = Vector3.new(0.3, 0.579792, 0.3) |
| 181 | p.CFrame = CFrame.new(0.692117, 3.65755, 4.95187) * CFrame.Angles(math.rad(-16.0325), math.rad(36.3605), math.rad(-13.3216)) |
| 182 | p.BrickColor = BrickColor.new("Toothpaste") |
| 183 | p.Material = Enum.Material.Neon |
| 184 | p.Anchored = true |
| 185 | p.Parent = model |
| 186 | end |
| 187 | do |
| 188 | local p = Instance.new("Part") |
| 189 | p.Name = "Wisp_8" |
| 190 | p.Size = Vector3.new(0.3, 0.870181, 0.3) |
| 191 | p.CFrame = CFrame.new(-3.2904, 3.95933, -3.76474) * CFrame.Angles(math.rad(-17.4296), math.rad(96.112), math.rad(26.1993)) |
| 192 | p.BrickColor = BrickColor.new("Bright yellow") |
| 193 | p.Material = Enum.Material.Neon |
| 194 | p.Anchored = true |
| 195 | p.Parent = model |
| 196 | end |
| 197 | do |
| 198 | local p = Instance.new("Part") |
| 199 | p.Name = "Wisp_9" |
| 200 | p.Size = Vector3.new(0.3, 0.671139, 0.3) |
| 201 | p.CFrame = CFrame.new(-2.98863, 4.93652, -4.0085) * CFrame.Angles(math.rad(13.7476), math.rad(58.8249), math.rad(-7.23267)) |
| 202 | p.BrickColor = BrickColor.new("Toothpaste") |
| 203 | p.Material = Enum.Material.Neon |
| 204 | p.Anchored = true |
| 205 | p.Parent = model |
| 206 | end |
| 207 | do |
| 208 | local p = Instance.new("Part") |
| 209 | p.Name = "Wisp_10" |
| 210 | p.Size = Vector3.new(0.3, 1.05695, 0.3) |
| 211 | p.CFrame = CFrame.new(4.98917, 5.06, -0.328896) * CFrame.Angles(math.rad(11.0769), math.rad(303.427), math.rad(16.56)) |
| 212 | p.BrickColor = BrickColor.new("Bright yellow") |
| 213 | p.Material = Enum.Material.Neon |
| 214 | p.Anchored = true |
| 215 | p.Parent = model |
| 216 | end |
| 217 | do |
| 218 | local p = Instance.new("Part") |
| 219 | p.Name = "Wisp_11" |
| 220 | p.Size = Vector3.new(0.3, 0.815453, 0.3) |
| 221 | p.CFrame = CFrame.new(0.656325, 2.6284, 4.95674) * CFrame.Angles(math.rad(-13.9355), math.rad(75.9538), math.rad(26.5746)) |
| 222 | p.BrickColor = BrickColor.new("Toothpaste") |
| 223 | p.Material = Enum.Material.Neon |
| 224 | p.Anchored = true |
| 225 | p.Parent = model |
| 226 | end |
| 227 | do |
| 228 | local rightV = Vector3.new(1,0,0).Unit |
| 229 | local upV = (Vector3.new(0,0.5,0.866) - Vector3.new(0,0.5,0.866):Dot(rightV)*rightV).Unit |
| 230 | local normalV = upV:Cross(rightV) |
| 231 | local pos = Vector3.new(0, 4.5, 0) |
| 232 | local cyl = Instance.new("Part") |
| 233 | cyl.Shape = Enum.PartType.Cylinder |
| 234 | cyl.Size = Vector3.new(0.4, 10, 10) |
| 235 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 236 | cyl.BrickColor = BrickColor.new("Deep orange") |
| 237 | cyl.Material = Enum.Material.Glacier |
| 238 | cyl.MaterialVariant = "2022 Stud" |
| 239 | cyl.Anchored = true; cyl.Parent = workspace |
| 240 | local cuts = {} |
| 241 | local hole = Instance.new("Part") |
| 242 | hole.Shape = Enum.PartType.Cylinder |
| 243 | hole.Size = Vector3.new(0.6, 9, 9) |
| 244 | hole.CFrame = cyl.CFrame |
| 245 | hole.BrickColor = BrickColor.new("Deep orange") |
| 246 | hole.Material = Enum.Material.Glacier |
| 247 | hole.MaterialVariant = "2022 Stud" |
| 248 | hole.Anchored = true; hole.Parent = workspace |
| 249 | table.insert(cuts, hole) |
| 250 | if #cuts > 0 then |
| 251 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 252 | for _, c in ipairs(cuts) do c:Destroy() end |
| 253 | if ok and result then |
| 254 | cyl:Destroy() |
| 255 | result.Name = "Flame_Gold_1"; result.Anchored = true; result.Parent = model |
| 256 | else |
| 257 | cyl.Name = "Flame_Gold_1"; cyl.Parent = model |
| 258 | end |
| 259 | else |
| 260 | cyl.Name = "Flame_Gold_1"; cyl.Parent = model |
| 261 | end |
| 262 | end |
| 263 | do |
| 264 | local rightV = Vector3.new(1,0,0).Unit |
| 265 | local upV = (Vector3.new(0,0.5,0.866) - Vector3.new(0,0.5,0.866):Dot(rightV)*rightV).Unit |
| 266 | local normalV = upV:Cross(rightV) |
| 267 | local pos = Vector3.new(0, 4.5, 0) |
| 268 | local cyl = Instance.new("Part") |
| 269 | cyl.Shape = Enum.PartType.Cylinder |
| 270 | cyl.Size = Vector3.new(0.2, 9.6, 9.6) |
| 271 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 272 | cyl.BrickColor = BrickColor.new("Bright yellow") |
| 273 | cyl.Material = Enum.Material.Glacier |
| 274 | cyl.MaterialVariant = "2022 Big Stud" |
| 275 | cyl.Anchored = true; cyl.Parent = workspace |
| 276 | local cuts = {} |
| 277 | local hole = Instance.new("Part") |
| 278 | hole.Shape = Enum.PartType.Cylinder |
| 279 | hole.Size = Vector3.new(0.4, 8.6, 8.6) |
| 280 | hole.CFrame = cyl.CFrame |
| 281 | hole.BrickColor = BrickColor.new("Bright yellow") |
| 282 | hole.Material = Enum.Material.Glacier |
| 283 | hole.MaterialVariant = "2022 Big Stud" |
| 284 | hole.Anchored = true; hole.Parent = workspace |
| 285 | table.insert(cuts, hole) |
| 286 | if #cuts > 0 then |
| 287 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 288 | for _, c in ipairs(cuts) do c:Destroy() end |
| 289 | if ok and result then |
| 290 | cyl:Destroy() |
| 291 | result.Name = "Flame_Gold_2"; result.Anchored = true; result.Parent = model |
| 292 | else |
| 293 | cyl.Name = "Flame_Gold_2"; cyl.Parent = model |
| 294 | end |
| 295 | else |
| 296 | cyl.Name = "Flame_Gold_2"; cyl.Parent = model |
| 297 | end |
| 298 | end |
| 299 | do |
| 300 | local rightV = Vector3.new(0.866,0.5,0).Unit |
| 301 | local upV = (Vector3.new(-0.5,0.866,0) - Vector3.new(-0.5,0.866,0):Dot(rightV)*rightV).Unit |
| 302 | local normalV = upV:Cross(rightV) |
| 303 | local pos = Vector3.new(0, 4.5, 0) |
| 304 | local cyl = Instance.new("Part") |
| 305 | cyl.Shape = Enum.PartType.Cylinder |
| 306 | cyl.Size = Vector3.new(0.4, 10.2, 10.2) |
| 307 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 308 | cyl.BrickColor = BrickColor.new("Toothpaste") |
| 309 | cyl.Material = Enum.Material.Glacier |
| 310 | cyl.MaterialVariant = "2022 Stud" |
| 311 | cyl.Anchored = true; cyl.Parent = workspace |
| 312 | local cuts = {} |
| 313 | local hole = Instance.new("Part") |
| 314 | hole.Shape = Enum.PartType.Cylinder |
| 315 | hole.Size = Vector3.new(0.6, 9.2, 9.2) |
| 316 | hole.CFrame = cyl.CFrame |
| 317 | hole.BrickColor = BrickColor.new("Toothpaste") |
| 318 | hole.Material = Enum.Material.Glacier |
| 319 | hole.MaterialVariant = "2022 Stud" |
| 320 | hole.Anchored = true; hole.Parent = workspace |
| 321 | table.insert(cuts, hole) |
| 322 | if #cuts > 0 then |
| 323 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 324 | for _, c in ipairs(cuts) do c:Destroy() end |
| 325 | if ok and result then |
| 326 | cyl:Destroy() |
| 327 | result.Name = "Flame_Blue_1"; result.Anchored = true; result.Parent = model |
| 328 | else |
| 329 | cyl.Name = "Flame_Blue_1"; cyl.Parent = model |
| 330 | end |
| 331 | else |
| 332 | cyl.Name = "Flame_Blue_1"; cyl.Parent = model |
| 333 | end |
| 334 | end |
| 335 | do |
| 336 | local rightV = Vector3.new(0.866,0.5,0).Unit |
| 337 | local upV = (Vector3.new(-0.5,0.866,0) - Vector3.new(-0.5,0.866,0):Dot(rightV)*rightV).Unit |
| 338 | local normalV = upV:Cross(rightV) |
| 339 | local pos = Vector3.new(0, 4.5, 0) |
| 340 | local cyl = Instance.new("Part") |
| 341 | cyl.Shape = Enum.PartType.Cylinder |
| 342 | cyl.Size = Vector3.new(0.2, 9.8, 9.8) |
| 343 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 344 | cyl.BrickColor = BrickColor.new("Electric blue") |
| 345 | cyl.Material = Enum.Material.Glacier |
| 346 | cyl.MaterialVariant = "2022 Stud" |
| 347 | cyl.Anchored = true; cyl.Parent = workspace |
| 348 | local cuts = {} |
| 349 | local hole = Instance.new("Part") |
| 350 | hole.Shape = Enum.PartType.Cylinder |
| 351 | hole.Size = Vector3.new(0.4, 8.8, 8.8) |
| 352 | hole.CFrame = cyl.CFrame |
| 353 | hole.BrickColor = BrickColor.new("Electric blue") |
| 354 | hole.Material = Enum.Material.Glacier |
| 355 | hole.MaterialVariant = "2022 Stud" |
| 356 | hole.Anchored = true; hole.Parent = workspace |
| 357 | table.insert(cuts, hole) |
| 358 | if #cuts > 0 then |
| 359 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 360 | for _, c in ipairs(cuts) do c:Destroy() end |
| 361 | if ok and result then |
| 362 | cyl:Destroy() |
| 363 | result.Name = "Flame_Blue_2"; result.Anchored = true; result.Parent = model |
| 364 | else |
| 365 | cyl.Name = "Flame_Blue_2"; cyl.Parent = model |
| 366 | end |
| 367 | else |
| 368 | cyl.Name = "Flame_Blue_2"; cyl.Parent = model |
| 369 | end |
| 370 | end |
| 371 | do |
| 372 | local rightV = Vector3.new(0.707,-0.707,0).Unit |
| 373 | local upV = (Vector3.new(0.707,0.707,0) - Vector3.new(0.707,0.707,0):Dot(rightV)*rightV).Unit |
| 374 | local normalV = upV:Cross(rightV) |
| 375 | local pos = Vector3.new(0, 4.5, 0) |
| 376 | local cyl = Instance.new("Part") |
| 377 | cyl.Shape = Enum.PartType.Cylinder |
| 378 | cyl.Size = Vector3.new(0.3, 10.4, 10.4) |
| 379 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 380 | cyl.BrickColor = BrickColor.new("Deep orange") |
| 381 | cyl.Material = Enum.Material.Glacier |
| 382 | cyl.MaterialVariant = "2022 Stud" |
| 383 | cyl.Anchored = true; cyl.Parent = workspace |
| 384 | local cuts = {} |
| 385 | local hole = Instance.new("Part") |
| 386 | hole.Shape = Enum.PartType.Cylinder |
| 387 | hole.Size = Vector3.new(0.5, 9.4, 9.4) |
| 388 | hole.CFrame = cyl.CFrame |
| 389 | hole.BrickColor = BrickColor.new("Deep orange") |
| 390 | hole.Material = Enum.Material.Glacier |
| 391 | hole.MaterialVariant = "2022 Stud" |
| 392 | hole.Anchored = true; hole.Parent = workspace |
| 393 | table.insert(cuts, hole) |
| 394 | if #cuts > 0 then |
| 395 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 396 | for _, c in ipairs(cuts) do c:Destroy() end |
| 397 | if ok and result then |
| 398 | cyl:Destroy() |
| 399 | result.Name = "Flame_Gold_3"; result.Anchored = true; result.Parent = model |
| 400 | else |
| 401 | cyl.Name = "Flame_Gold_3"; cyl.Parent = model |
| 402 | end |
| 403 | else |
| 404 | cyl.Name = "Flame_Gold_3"; cyl.Parent = model |
| 405 | end |
| 406 | end |
| 407 | do |
| 408 | local rightV = Vector3.new(0.707,-0.707,0).Unit |
| 409 | local upV = (Vector3.new(0.707,0.707,0) - Vector3.new(0.707,0.707,0):Dot(rightV)*rightV).Unit |
| 410 | local normalV = upV:Cross(rightV) |
| 411 | local pos = Vector3.new(0, 4.5, 0) |
| 412 | local cyl = Instance.new("Part") |
| 413 | cyl.Shape = Enum.PartType.Cylinder |
| 414 | cyl.Size = Vector3.new(0.15, 10, 10) |
| 415 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 416 | cyl.BrickColor = BrickColor.new("Bright yellow") |
| 417 | cyl.Material = Enum.Material.Glacier |
| 418 | cyl.MaterialVariant = "2022 Big Stud" |
| 419 | cyl.Anchored = true; cyl.Parent = workspace |
| 420 | local cuts = {} |
| 421 | local hole = Instance.new("Part") |
| 422 | hole.Shape = Enum.PartType.Cylinder |
| 423 | hole.Size = Vector3.new(0.35, 9, 9) |
| 424 | hole.CFrame = cyl.CFrame |
| 425 | hole.BrickColor = BrickColor.new("Bright yellow") |
| 426 | hole.Material = Enum.Material.Glacier |
| 427 | hole.MaterialVariant = "2022 Big Stud" |
| 428 | hole.Anchored = true; hole.Parent = workspace |
| 429 | table.insert(cuts, hole) |
| 430 | if #cuts > 0 then |
| 431 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 432 | for _, c in ipairs(cuts) do c:Destroy() end |
| 433 | if ok and result then |
| 434 | cyl:Destroy() |
| 435 | result.Name = "Flame_Gold_4"; result.Anchored = true; result.Parent = model |
| 436 | else |
| 437 | cyl.Name = "Flame_Gold_4"; cyl.Parent = model |
| 438 | end |
| 439 | else |
| 440 | cyl.Name = "Flame_Gold_4"; cyl.Parent = model |
| 441 | end |
| 442 | end |
| 443 | do |
| 444 | local rightV = Vector3.new(0,1,0).Unit |
| 445 | local upV = (Vector3.new(0,0,1) - Vector3.new(0,0,1):Dot(rightV)*rightV).Unit |
| 446 | local normalV = upV:Cross(rightV) |
| 447 | local pos = Vector3.new(0, 4.5, 0) |
| 448 | local cyl = Instance.new("Part") |
| 449 | cyl.Shape = Enum.PartType.Cylinder |
| 450 | cyl.Size = Vector3.new(0.3, 10.6, 10.6) |
| 451 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 452 | cyl.BrickColor = BrickColor.new("Toothpaste") |
| 453 | cyl.Material = Enum.Material.Glacier |
| 454 | cyl.MaterialVariant = "2022 Stud" |
| 455 | cyl.Anchored = true; cyl.Parent = workspace |
| 456 | local cuts = {} |
| 457 | local hole = Instance.new("Part") |
| 458 | hole.Shape = Enum.PartType.Cylinder |
| 459 | hole.Size = Vector3.new(0.5, 9.6, 9.6) |
| 460 | hole.CFrame = cyl.CFrame |
| 461 | hole.BrickColor = BrickColor.new("Toothpaste") |
| 462 | hole.Material = Enum.Material.Glacier |
| 463 | hole.MaterialVariant = "2022 Stud" |
| 464 | hole.Anchored = true; hole.Parent = workspace |
| 465 | table.insert(cuts, hole) |
| 466 | if #cuts > 0 then |
| 467 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 468 | for _, c in ipairs(cuts) do c:Destroy() end |
| 469 | if ok and result then |
| 470 | cyl:Destroy() |
| 471 | result.Name = "Flame_Blue_3"; result.Anchored = true; result.Parent = model |
| 472 | else |
| 473 | cyl.Name = "Flame_Blue_3"; cyl.Parent = model |
| 474 | end |
| 475 | else |
| 476 | cyl.Name = "Flame_Blue_3"; cyl.Parent = model |
| 477 | end |
| 478 | end |
| 479 | do |
| 480 | local rightV = Vector3.new(0,1,0).Unit |
| 481 | local upV = (Vector3.new(0,0,1) - Vector3.new(0,0,1):Dot(rightV)*rightV).Unit |
| 482 | local normalV = upV:Cross(rightV) |
| 483 | local pos = Vector3.new(0, 4.5, 0) |
| 484 | local cyl = Instance.new("Part") |
| 485 | cyl.Shape = Enum.PartType.Cylinder |
| 486 | cyl.Size = Vector3.new(0.15, 10.2, 10.2) |
| 487 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 488 | cyl.BrickColor = BrickColor.new("Electric blue") |
| 489 | cyl.Material = Enum.Material.Glacier |
| 490 | cyl.MaterialVariant = "2022 Stud" |
| 491 | cyl.Anchored = true; cyl.Parent = workspace |
| 492 | local cuts = {} |
| 493 | local hole = Instance.new("Part") |
| 494 | hole.Shape = Enum.PartType.Cylinder |
| 495 | hole.Size = Vector3.new(0.35, 9.2, 9.2) |
| 496 | hole.CFrame = cyl.CFrame |
| 497 | hole.BrickColor = BrickColor.new("Electric blue") |
| 498 | hole.Material = Enum.Material.Glacier |
| 499 | hole.MaterialVariant = "2022 Stud" |
| 500 | hole.Anchored = true; hole.Parent = workspace |
| 501 | table.insert(cuts, hole) |
| 502 | if #cuts > 0 then |
| 503 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 504 | for _, c in ipairs(cuts) do c:Destroy() end |
| 505 | if ok and result then |
| 506 | cyl:Destroy() |
| 507 | result.Name = "Flame_Blue_4"; result.Anchored = true; result.Parent = model |
| 508 | else |
| 509 | cyl.Name = "Flame_Blue_4"; cyl.Parent = model |
| 510 | end |
| 511 | else |
| 512 | cyl.Name = "Flame_Blue_4"; cyl.Parent = model |
| 513 | end |
| 514 | end |
| 515 | model.PrimaryPart = model:FindFirstChild("Egg_Mid") |
| 516 | print("PhoenixEgg built: " .. #model:GetChildren() .. " parts") |
Loading comments...