Loading model...
by Kovarri Dev · 3/31/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: MushroomCreature |
| 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 = "MushroomCreature" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Dark blue"] = "2022 Inlet", |
| 25 | ["Lapis"] = "2022 Stud", |
| 26 | ["Lavender"] = "2022 Stud", |
| 27 | ["Pastel violet"] = "2022 Stud", |
| 28 | ["Pearl"] = "2022 Stud", |
| 29 | ["Pine Cone"] = "2022 Small Stud", |
| 30 | ["Really black"] = "2022 Universal", |
| 31 | } |
| 32 | do |
| 33 | local p = Instance.new("Part") |
| 34 | p.Shape = Enum.PartType.Cylinder |
| 35 | p.Name = "Spot1" |
| 36 | p.Size = Vector3.new(0.2, 2, 2) |
| 37 | p.CFrame = CFrame.new(2, 15, 2) * CFrame.Angles(math.rad(45), math.rad(45), math.rad(0)) |
| 38 | p.BrickColor = BrickColor.new("Lapis") |
| 39 | p.Material = Enum.Material.Glacier |
| 40 | p.MaterialVariant = "2022 Stud" |
| 41 | p.Anchored = true |
| 42 | p.Parent = model |
| 43 | end |
| 44 | do |
| 45 | local p = Instance.new("Part") |
| 46 | p.Shape = Enum.PartType.Cylinder |
| 47 | p.Name = "Spot2" |
| 48 | p.Size = Vector3.new(0.2, 2.5, 2.5) |
| 49 | p.CFrame = CFrame.new(-3, 14, 1) * CFrame.Angles(math.rad(30), math.rad(-60), math.rad(0)) |
| 50 | p.BrickColor = BrickColor.new("Lapis") |
| 51 | p.Material = Enum.Material.Glacier |
| 52 | p.MaterialVariant = "2022 Stud" |
| 53 | p.Anchored = true |
| 54 | p.Parent = model |
| 55 | end |
| 56 | do |
| 57 | local p = Instance.new("Part") |
| 58 | p.Shape = Enum.PartType.Cylinder |
| 59 | p.Name = "Spot3" |
| 60 | p.Size = Vector3.new(0.2, 1.8, 1.8) |
| 61 | p.CFrame = CFrame.new(1, 14, -3) * CFrame.Angles(math.rad(-40), math.rad(20), math.rad(0)) |
| 62 | p.BrickColor = BrickColor.new("Lapis") |
| 63 | p.Material = Enum.Material.Glacier |
| 64 | p.MaterialVariant = "2022 Stud" |
| 65 | p.Anchored = true |
| 66 | p.Parent = model |
| 67 | end |
| 68 | do |
| 69 | local p = Instance.new("Part") |
| 70 | p.Shape = Enum.PartType.Cylinder |
| 71 | p.Name = "Spot4" |
| 72 | p.Size = Vector3.new(0.2, 1.5, 1.5) |
| 73 | p.CFrame = CFrame.new(-2, 16, -1) * CFrame.Angles(math.rad(-20), math.rad(-30), math.rad(0)) |
| 74 | p.BrickColor = BrickColor.new("Lapis") |
| 75 | p.Material = Enum.Material.Glacier |
| 76 | p.MaterialVariant = "2022 Stud" |
| 77 | p.Anchored = true |
| 78 | p.Parent = model |
| 79 | end |
| 80 | do |
| 81 | local p = Instance.new("Part") |
| 82 | p.Shape = Enum.PartType.Cylinder |
| 83 | p.Name = "Spot5" |
| 84 | p.Size = Vector3.new(0.2, 2.2, 2.2) |
| 85 | p.CFrame = CFrame.new(3, 13, -2) * CFrame.Angles(math.rad(-30), math.rad(60), math.rad(0)) |
| 86 | p.BrickColor = BrickColor.new("Lapis") |
| 87 | p.Material = Enum.Material.Glacier |
| 88 | p.MaterialVariant = "2022 Stud" |
| 89 | p.Anchored = true |
| 90 | p.Parent = model |
| 91 | end |
| 92 | do |
| 93 | local p = Instance.new("Part") |
| 94 | p.Shape = Enum.PartType.Cylinder |
| 95 | p.Name = "HeadBase" |
| 96 | p.Size = Vector3.new(2, 2.5, 2.5) |
| 97 | p.CFrame = CFrame.new(0, 10.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 98 | p.BrickColor = BrickColor.new("Pastel violet") |
| 99 | p.Material = Enum.Material.Glacier |
| 100 | p.MaterialVariant = "2022 Stud" |
| 101 | p.Anchored = true |
| 102 | p.Parent = model |
| 103 | end |
| 104 | do |
| 105 | local p = Instance.new("Part") |
| 106 | p.Shape = Enum.PartType.Cylinder |
| 107 | p.Name = "Torso" |
| 108 | p.Size = Vector3.new(3, 2, 2) |
| 109 | p.CFrame = CFrame.new(0, 8.46, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 110 | p.BrickColor = BrickColor.new("Pastel violet") |
| 111 | p.Material = Enum.Material.Glacier |
| 112 | p.MaterialVariant = "2022 Stud" |
| 113 | p.Anchored = true |
| 114 | p.Parent = model |
| 115 | end |
| 116 | do |
| 117 | local p = Instance.new("Part") |
| 118 | p.Shape = Enum.PartType.Ball |
| 119 | p.Name = "EyeL" |
| 120 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 121 | p.CFrame = CFrame.new(-0.8, 10.5, -1.2) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 122 | p.BrickColor = BrickColor.new("Lapis") |
| 123 | p.Material = Enum.Material.Glacier |
| 124 | p.MaterialVariant = "2022 Stud" |
| 125 | p.Anchored = true |
| 126 | p.Parent = model |
| 127 | end |
| 128 | do |
| 129 | local p = Instance.new("Part") |
| 130 | p.Shape = Enum.PartType.Ball |
| 131 | p.Name = "EyeR" |
| 132 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 133 | p.CFrame = CFrame.new(0.8, 10.5, -1.2) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 134 | p.BrickColor = BrickColor.new("Lapis") |
| 135 | p.Material = Enum.Material.Glacier |
| 136 | p.MaterialVariant = "2022 Stud" |
| 137 | p.Anchored = true |
| 138 | p.Parent = model |
| 139 | end |
| 140 | do |
| 141 | local p = Instance.new("Part") |
| 142 | p.Shape = Enum.PartType.Cylinder |
| 143 | p.Name = "ArmL_Upper" |
| 144 | p.Size = Vector3.new(2.98998, 0.6, 0.6) |
| 145 | p.CFrame = CFrame.new(-1.85, 8.25, -0.5) * CFrame.Angles(math.rad(-180), math.rad(37.5686), math.rad(123.267)) |
| 146 | p.BrickColor = BrickColor.new("Pastel violet") |
| 147 | p.Material = Enum.Material.Glacier |
| 148 | p.MaterialVariant = "2022 Stud" |
| 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 = "ArmL_Lower" |
| 156 | p.Size = Vector3.new(2.69258, 0.5, 0.5) |
| 157 | p.CFrame = CFrame.new(-2, 6, -1.75) * CFrame.Angles(math.rad(0), math.rad(56.3099), math.rad(-47.9689)) |
| 158 | p.BrickColor = BrickColor.new("Pastel violet") |
| 159 | p.Material = Enum.Material.Glacier |
| 160 | p.MaterialVariant = "2022 Stud" |
| 161 | p.Anchored = true |
| 162 | p.Parent = model |
| 163 | end |
| 164 | do |
| 165 | local p = Instance.new("Part") |
| 166 | p.Shape = Enum.PartType.Ball |
| 167 | p.Name = "HandL" |
| 168 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 169 | p.CFrame = CFrame.new(-1.5, 5, -2.5) |
| 170 | p.BrickColor = BrickColor.new("Pastel violet") |
| 171 | p.Material = Enum.Material.Glacier |
| 172 | p.MaterialVariant = "2022 Stud" |
| 173 | p.Anchored = true |
| 174 | p.Parent = model |
| 175 | end |
| 176 | do |
| 177 | local p = Instance.new("Part") |
| 178 | p.Shape = Enum.PartType.Cylinder |
| 179 | p.Name = "ArmR_Upper" |
| 180 | p.Size = Vector3.new(2.98998, 0.6, 0.6) |
| 181 | p.CFrame = CFrame.new(1.85, 8.25, -0.5) * CFrame.Angles(math.rad(0), math.rad(37.5686), math.rad(-56.7332)) |
| 182 | p.BrickColor = BrickColor.new("Pastel violet") |
| 183 | p.Material = Enum.Material.Glacier |
| 184 | p.MaterialVariant = "2022 Stud" |
| 185 | p.Anchored = true |
| 186 | p.Parent = model |
| 187 | end |
| 188 | do |
| 189 | local p = Instance.new("Part") |
| 190 | p.Shape = Enum.PartType.Cylinder |
| 191 | p.Name = "ArmR_Lower" |
| 192 | p.Size = Vector3.new(2.69258, 0.5, 0.5) |
| 193 | p.CFrame = CFrame.new(2, 6, -1.75) * CFrame.Angles(math.rad(-180), math.rad(56.3099), math.rad(132.031)) |
| 194 | p.BrickColor = BrickColor.new("Pastel violet") |
| 195 | p.Material = Enum.Material.Glacier |
| 196 | p.MaterialVariant = "2022 Stud" |
| 197 | p.Anchored = true |
| 198 | p.Parent = model |
| 199 | end |
| 200 | do |
| 201 | local p = Instance.new("Part") |
| 202 | p.Shape = Enum.PartType.Ball |
| 203 | p.Name = "HandR" |
| 204 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 205 | p.CFrame = CFrame.new(1.5, 5, -2.5) |
| 206 | p.BrickColor = BrickColor.new("Pastel violet") |
| 207 | p.Material = Enum.Material.Glacier |
| 208 | p.MaterialVariant = "2022 Stud" |
| 209 | p.Anchored = true |
| 210 | p.Parent = model |
| 211 | end |
| 212 | do |
| 213 | local p = Instance.new("Part") |
| 214 | p.Shape = Enum.PartType.Cylinder |
| 215 | p.Name = "LegL_Upper" |
| 216 | p.Size = Vector3.new(3.04138, 0.8, 0.8) |
| 217 | p.CFrame = CFrame.new(-1.25, 5.5, 0) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(99.4623)) |
| 218 | p.BrickColor = BrickColor.new("Pastel violet") |
| 219 | p.Material = Enum.Material.Glacier |
| 220 | p.MaterialVariant = "2022 Stud" |
| 221 | p.Anchored = true |
| 222 | p.Parent = model |
| 223 | end |
| 224 | do |
| 225 | local p = Instance.new("Part") |
| 226 | p.Shape = Enum.PartType.Cylinder |
| 227 | p.Name = "LegL_Calf" |
| 228 | p.Size = Vector3.new(2.51794, 2, 2) |
| 229 | p.CFrame = CFrame.new(-1.65, 2.75, 0) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(96.8428)) |
| 230 | p.BrickColor = BrickColor.new("Lavender") |
| 231 | p.Material = Enum.Material.Glacier |
| 232 | p.MaterialVariant = "2022 Stud" |
| 233 | p.Anchored = true |
| 234 | p.Parent = model |
| 235 | end |
| 236 | do |
| 237 | local p = Instance.new("Part") |
| 238 | p.Shape = Enum.PartType.Cylinder |
| 239 | p.Name = "LegL_Tip" |
| 240 | p.Size = Vector3.new(1.93391, 0.6, 0.6) |
| 241 | p.CFrame = CFrame.new(-2.15, 0.75, -0.5) * CFrame.Angles(math.rad(-180), math.rad(55.008), math.rad(129.138)) |
| 242 | p.BrickColor = BrickColor.new("Pearl") |
| 243 | p.Material = Enum.Material.Glacier |
| 244 | p.MaterialVariant = "2022 Stud" |
| 245 | p.Anchored = true |
| 246 | p.Parent = model |
| 247 | end |
| 248 | do |
| 249 | local p = Instance.new("Part") |
| 250 | p.Shape = Enum.PartType.Cylinder |
| 251 | p.Name = "LegR_Upper" |
| 252 | p.Size = Vector3.new(3.04138, 0.8, 0.8) |
| 253 | p.CFrame = CFrame.new(1.25, 5.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-80.5377)) |
| 254 | p.BrickColor = BrickColor.new("Pastel violet") |
| 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.Cylinder |
| 263 | p.Name = "LegR_Calf" |
| 264 | p.Size = Vector3.new(2.51794, 2, 2) |
| 265 | p.CFrame = CFrame.new(1.65, 2.75, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-83.1572)) |
| 266 | p.BrickColor = BrickColor.new("Lavender") |
| 267 | p.Material = Enum.Material.Glacier |
| 268 | p.MaterialVariant = "2022 Stud" |
| 269 | p.Anchored = true |
| 270 | p.Parent = model |
| 271 | end |
| 272 | do |
| 273 | local p = Instance.new("Part") |
| 274 | p.Shape = Enum.PartType.Cylinder |
| 275 | p.Name = "LegR_Tip" |
| 276 | p.Size = Vector3.new(1.93391, 0.6, 0.6) |
| 277 | p.CFrame = CFrame.new(2.15, 0.75, -0.5) * CFrame.Angles(math.rad(0), math.rad(55.008), math.rad(-50.8623)) |
| 278 | p.BrickColor = BrickColor.new("Pearl") |
| 279 | p.Material = Enum.Material.Glacier |
| 280 | p.MaterialVariant = "2022 Stud" |
| 281 | p.Anchored = true |
| 282 | p.Parent = model |
| 283 | end |
| 284 | do |
| 285 | local p = Instance.new("Part") |
| 286 | p.Shape = Enum.PartType.Cylinder |
| 287 | p.Name = "StaffMain" |
| 288 | p.Size = Vector3.new(15.5242, 0.8, 0.8) |
| 289 | p.CFrame = CFrame.new(-1, 9, -2.5) * CFrame.Angles(math.rad(0), math.rad(-26.5651), math.rad(-64.3982)) |
| 290 | p.BrickColor = BrickColor.new("Pine Cone") |
| 291 | p.Material = Enum.Material.Glacier |
| 292 | p.MaterialVariant = "2022 Small Stud" |
| 293 | p.Anchored = true |
| 294 | p.Parent = model |
| 295 | end |
| 296 | do |
| 297 | local p = Instance.new("Part") |
| 298 | p.Shape = Enum.PartType.Cylinder |
| 299 | p.Name = "StaffThorn1" |
| 300 | p.Size = Vector3.new(1.15758, 0.3, 0.3) |
| 301 | p.CFrame = CFrame.new(-3, 12.75, -3.35) * CFrame.Angles(math.rad(-180), math.rad(16.6992), math.rad(-154.41)) |
| 302 | p.BrickColor = BrickColor.new("Pine Cone") |
| 303 | p.Material = Enum.Material.Glacier |
| 304 | p.MaterialVariant = "2022 Small Stud" |
| 305 | p.Anchored = true |
| 306 | p.Parent = model |
| 307 | end |
| 308 | do |
| 309 | local p = Instance.new("Part") |
| 310 | p.Shape = Enum.PartType.Cylinder |
| 311 | p.Name = "StaffThorn2" |
| 312 | p.Size = Vector3.new(1.06771, 0.3, 0.3) |
| 313 | p.CFrame = CFrame.new(-0.75, 9.25, -2.6) * CFrame.Angles(math.rad(0), math.rad(57.9946), math.rad(27.9235)) |
| 314 | p.BrickColor = BrickColor.new("Pine Cone") |
| 315 | p.Material = Enum.Material.Glacier |
| 316 | p.MaterialVariant = "2022 Small Stud" |
| 317 | p.Anchored = true |
| 318 | p.Parent = model |
| 319 | end |
| 320 | do |
| 321 | local p = Instance.new("Part") |
| 322 | p.Shape = Enum.PartType.Cylinder |
| 323 | p.Name = "StaffThorn3" |
| 324 | p.Size = Vector3.new(1.22474, 0.3, 0.3) |
| 325 | p.CFrame = CFrame.new(1, 5.25, -1.75) * CFrame.Angles(math.rad(0), math.rad(26.5651), math.rad(-24.0948)) |
| 326 | p.BrickColor = BrickColor.new("Pine Cone") |
| 327 | p.Material = Enum.Material.Glacier |
| 328 | p.MaterialVariant = "2022 Small Stud" |
| 329 | p.Anchored = true |
| 330 | p.Parent = model |
| 331 | end |
| 332 | do |
| 333 | local rightV = Vector3.new(1,0,0).Unit |
| 334 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 335 | local normalV = upV:Cross(rightV) |
| 336 | local pos = Vector3.new(0, 11.46, 0) |
| 337 | local cyl = Instance.new("Part") |
| 338 | cyl.Shape = Enum.PartType.Cylinder |
| 339 | cyl.Size = Vector3.new(1, 12.4, 12.4) |
| 340 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 341 | cyl.BrickColor = BrickColor.new("Dark blue") |
| 342 | cyl.Material = Enum.Material.Glacier |
| 343 | cyl.MaterialVariant = "2022 Inlet" |
| 344 | cyl.Anchored = true; cyl.Parent = workspace |
| 345 | local cuts = {} |
| 346 | local hole = Instance.new("Part") |
| 347 | hole.Shape = Enum.PartType.Cylinder |
| 348 | hole.Size = Vector3.new(1.2, 11, 11) |
| 349 | hole.CFrame = cyl.CFrame |
| 350 | hole.BrickColor = BrickColor.new("Dark blue") |
| 351 | hole.Material = Enum.Material.Glacier |
| 352 | hole.MaterialVariant = "2022 Inlet" |
| 353 | hole.Anchored = true; hole.Parent = workspace |
| 354 | table.insert(cuts, hole) |
| 355 | if #cuts > 0 then |
| 356 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 357 | for _, c in ipairs(cuts) do c:Destroy() end |
| 358 | if ok and result then |
| 359 | cyl:Destroy() |
| 360 | result.Name = "CapRim"; result.Anchored = true; result.Parent = model |
| 361 | else |
| 362 | cyl.Name = "CapRim"; cyl.Parent = model |
| 363 | end |
| 364 | else |
| 365 | cyl.Name = "CapRim"; cyl.Parent = model |
| 366 | end |
| 367 | end |
| 368 | do |
| 369 | local upV = Vector3.new(0,1,0).Unit |
| 370 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 371 | local forwardV = rightV:Cross(upV) |
| 372 | local pos = Vector3.new(0, 12, 0) |
| 373 | local ball = Instance.new("Part") |
| 374 | ball.Shape = Enum.PartType.Ball |
| 375 | ball.Size = Vector3.new(12, 12, 12) |
| 376 | ball.CFrame = CFrame.new(pos) |
| 377 | ball.BrickColor = BrickColor.new("Dark blue") |
| 378 | ball.Material = Enum.Material.Glacier |
| 379 | ball.MaterialVariant = "2022 Inlet" |
| 380 | ball.Anchored = true; ball.Parent = workspace |
| 381 | local cuts = {} |
| 382 | do |
| 383 | local h = 0 |
| 384 | local cut = Instance.new("Part") |
| 385 | cut.Size = Vector3.new(24, 24, 24) |
| 386 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-12), rightV, upV) |
| 387 | cut.BrickColor = BrickColor.new("Dark blue") |
| 388 | cut.Material = Enum.Material.Glacier |
| 389 | cut.MaterialVariant = "2022 Inlet" |
| 390 | cut.Anchored = true; cut.Parent = workspace |
| 391 | table.insert(cuts, cut) |
| 392 | end |
| 393 | if #cuts > 0 then |
| 394 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 395 | for _, c in ipairs(cuts) do c:Destroy() end |
| 396 | if ok and result then |
| 397 | ball:Destroy() |
| 398 | result.Name = "CapDome"; result.Anchored = true; result.Parent = model |
| 399 | else |
| 400 | ball.Name = "CapDome"; ball.Parent = model |
| 401 | end |
| 402 | else |
| 403 | ball.Name = "CapDome"; ball.Parent = model |
| 404 | end |
| 405 | end |
| 406 | do |
| 407 | local upV = Vector3.new(0,1,0).Unit |
| 408 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 409 | local forwardV = rightV:Cross(upV) |
| 410 | local pos = Vector3.new(0, 12.04, 0) |
| 411 | local ball = Instance.new("Part") |
| 412 | ball.Shape = Enum.PartType.Ball |
| 413 | ball.Size = Vector3.new(11.6, 11.6, 11.6) |
| 414 | ball.CFrame = CFrame.new(pos) |
| 415 | ball.BrickColor = BrickColor.new("Really black") |
| 416 | ball.Material = Enum.Material.Glacier |
| 417 | ball.MaterialVariant = "2022 Universal" |
| 418 | ball.Anchored = true; ball.Parent = workspace |
| 419 | local cuts = {} |
| 420 | do |
| 421 | local h = -1.983717 |
| 422 | local cut = Instance.new("Part") |
| 423 | cut.Size = Vector3.new(23.2, 23.2, 23.2) |
| 424 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-13.583717), rightV, upV) |
| 425 | cut.BrickColor = BrickColor.new("Really black") |
| 426 | cut.Material = Enum.Material.Glacier |
| 427 | cut.MaterialVariant = "2022 Universal" |
| 428 | cut.Anchored = true; cut.Parent = workspace |
| 429 | table.insert(cuts, cut) |
| 430 | end |
| 431 | do |
| 432 | local h = 0 |
| 433 | local cut = Instance.new("Part") |
| 434 | cut.Size = Vector3.new(23.2, 23.2, 23.2) |
| 435 | cut.CFrame = CFrame.fromMatrix(pos + upV*(11.6), rightV, upV) |
| 436 | cut.BrickColor = BrickColor.new("Really black") |
| 437 | cut.Material = Enum.Material.Glacier |
| 438 | cut.MaterialVariant = "2022 Universal" |
| 439 | cut.Anchored = true; cut.Parent = workspace |
| 440 | table.insert(cuts, cut) |
| 441 | end |
| 442 | if #cuts > 0 then |
| 443 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 444 | for _, c in ipairs(cuts) do c:Destroy() end |
| 445 | if ok and result then |
| 446 | ball:Destroy() |
| 447 | result.Name = "CapUnder"; result.Anchored = true; result.Parent = model |
| 448 | else |
| 449 | ball.Name = "CapUnder"; ball.Parent = model |
| 450 | end |
| 451 | else |
| 452 | ball.Name = "CapUnder"; ball.Parent = model |
| 453 | end |
| 454 | end |
| 455 | model.PrimaryPart = model:FindFirstChild("Torso") |
| 456 | print("MushroomCreature built: " .. #model:GetChildren() .. " parts") |
Loading comments...