Loading model...
by FGDubbing · 5/28/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: MushroomSlime |
| 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 = "MushroomSlime" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright red"] = "2022 Stud", |
| 25 | ["Bright yellow"] = "2022 Big Stud", |
| 26 | ["Lapis"] = "2022 Stud", |
| 27 | ["Maroon"] = "2022 Stud", |
| 28 | ["Pink"] = "2022 Stud", |
| 29 | ["Really black"] = "2022 Universal", |
| 30 | ["White"] = "2022 Stud", |
| 31 | } |
| 32 | do |
| 33 | local p = Instance.new("Part") |
| 34 | p.Shape = Enum.PartType.Cylinder |
| 35 | p.Name = "BodyBase" |
| 36 | p.Size = Vector3.new(5, 12, 12) |
| 37 | p.CFrame = CFrame.new(0, 2.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 38 | p.BrickColor = BrickColor.new("Bright yellow") |
| 39 | p.Material = Enum.Material.Glacier |
| 40 | p.MaterialVariant = "2022 Big Stud" |
| 41 | p.Anchored = true |
| 42 | p.Parent = model |
| 43 | end |
| 44 | do |
| 45 | local p = Instance.new("Part") |
| 46 | p.Name = "DroolBase" |
| 47 | p.Size = Vector3.new(1.8, 0.8, 0.3) |
| 48 | p.CFrame = CFrame.new(1.8, 3.2, -6) |
| 49 | p.BrickColor = BrickColor.new("Lapis") |
| 50 | p.Material = Enum.Material.Glacier |
| 51 | p.MaterialVariant = "2022 Stud" |
| 52 | p.Anchored = true |
| 53 | p.Parent = model |
| 54 | end |
| 55 | do |
| 56 | local p = Instance.new("Part") |
| 57 | p.Name = "DroolDrop1" |
| 58 | p.Size = Vector3.new(0.6, 1.5, 0.3) |
| 59 | p.CFrame = CFrame.new(1.3, 2.5, -5.96) |
| 60 | p.BrickColor = BrickColor.new("Lapis") |
| 61 | p.Material = Enum.Material.Glacier |
| 62 | p.MaterialVariant = "2022 Stud" |
| 63 | p.Anchored = true |
| 64 | p.Parent = model |
| 65 | end |
| 66 | do |
| 67 | local p = Instance.new("Part") |
| 68 | p.Name = "DroolDrop2" |
| 69 | p.Size = Vector3.new(0.6, 1.2, 0.3) |
| 70 | p.CFrame = CFrame.new(2.3, 2.7, -5.96) |
| 71 | p.BrickColor = BrickColor.new("Lapis") |
| 72 | p.Material = Enum.Material.Glacier |
| 73 | p.MaterialVariant = "2022 Stud" |
| 74 | p.Anchored = true |
| 75 | p.Parent = model |
| 76 | end |
| 77 | do |
| 78 | local p = Instance.new("Part") |
| 79 | p.Shape = Enum.PartType.Cylinder |
| 80 | p.Name = "StemTop" |
| 81 | p.Size = Vector3.new(3, 1.5, 1.5) |
| 82 | p.CFrame = CFrame.new(0, 9.46, -1) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 83 | p.BrickColor = BrickColor.new("White") |
| 84 | p.Material = Enum.Material.Glacier |
| 85 | p.MaterialVariant = "2022 Stud" |
| 86 | p.Anchored = true |
| 87 | p.Parent = model |
| 88 | end |
| 89 | do |
| 90 | local p = Instance.new("Part") |
| 91 | p.Shape = Enum.PartType.Cylinder |
| 92 | p.Name = "CapTopBase" |
| 93 | p.Size = Vector3.new(0.4, 6, 6) |
| 94 | p.CFrame = CFrame.new(0, 11, -1) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 95 | p.BrickColor = BrickColor.new("Pink") |
| 96 | p.Material = Enum.Material.Glacier |
| 97 | p.MaterialVariant = "2022 Stud" |
| 98 | p.Anchored = true |
| 99 | p.Parent = model |
| 100 | end |
| 101 | do |
| 102 | local p = Instance.new("Part") |
| 103 | p.Shape = Enum.PartType.Ball |
| 104 | p.Name = "SpotT1" |
| 105 | p.Size = Vector3.new(1.2, 1.2, 1.2) |
| 106 | p.CFrame = CFrame.new(0, 13.5, -1) |
| 107 | p.BrickColor = BrickColor.new("White") |
| 108 | p.Material = Enum.Material.Glacier |
| 109 | p.MaterialVariant = "2022 Stud" |
| 110 | p.Anchored = true |
| 111 | p.Parent = model |
| 112 | end |
| 113 | do |
| 114 | local p = Instance.new("Part") |
| 115 | p.Shape = Enum.PartType.Ball |
| 116 | p.Name = "SpotT2" |
| 117 | p.Size = Vector3.new(1, 1, 1) |
| 118 | p.CFrame = CFrame.new(1.8, 12.2, 0.5) |
| 119 | p.BrickColor = BrickColor.new("White") |
| 120 | p.Material = Enum.Material.Glacier |
| 121 | p.MaterialVariant = "2022 Stud" |
| 122 | p.Anchored = true |
| 123 | p.Parent = model |
| 124 | end |
| 125 | do |
| 126 | local p = Instance.new("Part") |
| 127 | p.Shape = Enum.PartType.Ball |
| 128 | p.Name = "SpotT3" |
| 129 | p.Size = Vector3.new(1, 1, 1) |
| 130 | p.CFrame = CFrame.new(-1.8, 12.2, -2.5) |
| 131 | p.BrickColor = BrickColor.new("White") |
| 132 | p.Material = Enum.Material.Glacier |
| 133 | p.MaterialVariant = "2022 Stud" |
| 134 | p.Anchored = true |
| 135 | p.Parent = model |
| 136 | end |
| 137 | do |
| 138 | local p = Instance.new("Part") |
| 139 | p.Shape = Enum.PartType.Cylinder |
| 140 | p.Name = "StemL" |
| 141 | p.Size = Vector3.new(3.90512, 1.2, 1.2) |
| 142 | p.CFrame = CFrame.new(-5, 7.25, -1) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(-140.194)) |
| 143 | p.BrickColor = BrickColor.new("White") |
| 144 | p.Material = Enum.Material.Glacier |
| 145 | p.MaterialVariant = "2022 Stud" |
| 146 | p.Anchored = true |
| 147 | p.Parent = model |
| 148 | end |
| 149 | do |
| 150 | local p = Instance.new("Part") |
| 151 | p.Shape = Enum.PartType.Ball |
| 152 | p.Name = "SpotL1" |
| 153 | p.Size = Vector3.new(0.8, 0.8, 0.8) |
| 154 | p.CFrame = CFrame.new(-8.5, 10.5, -1) |
| 155 | p.BrickColor = BrickColor.new("White") |
| 156 | p.Material = Enum.Material.Glacier |
| 157 | p.MaterialVariant = "2022 Stud" |
| 158 | p.Anchored = true |
| 159 | p.Parent = model |
| 160 | end |
| 161 | do |
| 162 | local p = Instance.new("Part") |
| 163 | p.Shape = Enum.PartType.Ball |
| 164 | p.Name = "SpotL2" |
| 165 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 166 | p.CFrame = CFrame.new(-6.5, 10, -2.5) |
| 167 | p.BrickColor = BrickColor.new("White") |
| 168 | p.Material = Enum.Material.Glacier |
| 169 | p.MaterialVariant = "2022 Stud" |
| 170 | p.Anchored = true |
| 171 | p.Parent = model |
| 172 | end |
| 173 | do |
| 174 | local p = Instance.new("Part") |
| 175 | p.Shape = Enum.PartType.Cylinder |
| 176 | p.Name = "StemR" |
| 177 | p.Size = Vector3.new(3.60555, 1.4, 1.4) |
| 178 | p.CFrame = CFrame.new(5, 7, 1) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(33.6901)) |
| 179 | p.BrickColor = BrickColor.new("White") |
| 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.Shape = Enum.PartType.Ball |
| 188 | p.Name = "SpotR1" |
| 189 | p.Size = Vector3.new(0.9, 0.9, 0.9) |
| 190 | p.CFrame = CFrame.new(8.5, 10, 1) |
| 191 | p.BrickColor = BrickColor.new("White") |
| 192 | p.Material = Enum.Material.Glacier |
| 193 | p.MaterialVariant = "2022 Stud" |
| 194 | p.Anchored = true |
| 195 | p.Parent = model |
| 196 | end |
| 197 | do |
| 198 | local p = Instance.new("Part") |
| 199 | p.Shape = Enum.PartType.Ball |
| 200 | p.Name = "SpotR2" |
| 201 | p.Size = Vector3.new(0.7, 0.7, 0.7) |
| 202 | p.CFrame = CFrame.new(6.5, 9.5, 2.5) |
| 203 | p.BrickColor = BrickColor.new("White") |
| 204 | p.Material = Enum.Material.Glacier |
| 205 | p.MaterialVariant = "2022 Stud" |
| 206 | p.Anchored = true |
| 207 | p.Parent = model |
| 208 | end |
| 209 | do |
| 210 | local rightV = Vector3.new(1,0,0).Unit |
| 211 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 212 | local normalV = upV:Cross(rightV) |
| 213 | local pos = Vector3.new(-2.5, 5.5, -5.6) |
| 214 | local cyl = Instance.new("Part") |
| 215 | cyl.Shape = Enum.PartType.Cylinder |
| 216 | cyl.Size = Vector3.new(0.4, 2.4, 2.4) |
| 217 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 218 | cyl.BrickColor = BrickColor.new("Really black") |
| 219 | cyl.Material = Enum.Material.Glacier |
| 220 | cyl.MaterialVariant = "2022 Universal" |
| 221 | cyl.Anchored = true; cyl.Parent = workspace |
| 222 | local cuts = {} |
| 223 | local hole = Instance.new("Part") |
| 224 | hole.Shape = Enum.PartType.Cylinder |
| 225 | hole.Size = Vector3.new(0.6, 1.2, 1.2) |
| 226 | hole.CFrame = cyl.CFrame |
| 227 | hole.BrickColor = BrickColor.new("Really black") |
| 228 | hole.Material = Enum.Material.Glacier |
| 229 | hole.MaterialVariant = "2022 Universal" |
| 230 | hole.Anchored = true; hole.Parent = workspace |
| 231 | table.insert(cuts, hole) |
| 232 | local angBoxes = {} |
| 233 | do |
| 234 | local edgeDir = 0.866025*rightV + 0.5*upV |
| 235 | local edgePerp = -0.5*rightV + 0.866025*upV |
| 236 | local cut = Instance.new("Part") |
| 237 | cut.Size = Vector3.new(4.8, 0.6, 4.8) |
| 238 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2.4 * edgePerp, edgeDir, normalV) |
| 239 | cut.BrickColor = BrickColor.new("Really black") |
| 240 | cut.Material = Enum.Material.Glacier |
| 241 | cut.MaterialVariant = "2022 Universal" |
| 242 | cut.Anchored = true; cut.Parent = workspace |
| 243 | table.insert(angBoxes, cut) |
| 244 | end |
| 245 | do |
| 246 | local edgeDir = -0.866025*rightV + 0.5*upV |
| 247 | local edgePerp = -0.5*rightV + -0.866025*upV |
| 248 | local cut = Instance.new("Part") |
| 249 | cut.Size = Vector3.new(4.8, 0.6, 4.8) |
| 250 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2.4 * edgePerp, edgeDir, normalV) |
| 251 | cut.BrickColor = BrickColor.new("Really black") |
| 252 | cut.Material = Enum.Material.Glacier |
| 253 | cut.MaterialVariant = "2022 Universal" |
| 254 | cut.Anchored = true; cut.Parent = workspace |
| 255 | table.insert(angBoxes, cut) |
| 256 | end |
| 257 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 258 | if #cuts > 0 then |
| 259 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 260 | for _, c in ipairs(cuts) do c:Destroy() end |
| 261 | if ok and result then |
| 262 | cyl:Destroy() |
| 263 | result.Name = "EyeL"; result.Anchored = true; result.Parent = model |
| 264 | else |
| 265 | cyl.Name = "EyeL"; cyl.Parent = model |
| 266 | end |
| 267 | else |
| 268 | cyl.Name = "EyeL"; cyl.Parent = model |
| 269 | end |
| 270 | end |
| 271 | do |
| 272 | local rightV = Vector3.new(1,0,0).Unit |
| 273 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 274 | local normalV = upV:Cross(rightV) |
| 275 | local pos = Vector3.new(2.5, 5.5, -5.6) |
| 276 | local cyl = Instance.new("Part") |
| 277 | cyl.Shape = Enum.PartType.Cylinder |
| 278 | cyl.Size = Vector3.new(0.4, 2.4, 2.4) |
| 279 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 280 | cyl.BrickColor = BrickColor.new("Really black") |
| 281 | cyl.Material = Enum.Material.Glacier |
| 282 | cyl.MaterialVariant = "2022 Universal" |
| 283 | cyl.Anchored = true; cyl.Parent = workspace |
| 284 | local cuts = {} |
| 285 | local hole = Instance.new("Part") |
| 286 | hole.Shape = Enum.PartType.Cylinder |
| 287 | hole.Size = Vector3.new(0.6, 1.2, 1.2) |
| 288 | hole.CFrame = cyl.CFrame |
| 289 | hole.BrickColor = BrickColor.new("Really black") |
| 290 | hole.Material = Enum.Material.Glacier |
| 291 | hole.MaterialVariant = "2022 Universal" |
| 292 | hole.Anchored = true; hole.Parent = workspace |
| 293 | table.insert(cuts, hole) |
| 294 | local angBoxes = {} |
| 295 | do |
| 296 | local edgeDir = 0.866025*rightV + 0.5*upV |
| 297 | local edgePerp = -0.5*rightV + 0.866025*upV |
| 298 | local cut = Instance.new("Part") |
| 299 | cut.Size = Vector3.new(4.8, 0.6, 4.8) |
| 300 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2.4 * edgePerp, edgeDir, normalV) |
| 301 | cut.BrickColor = BrickColor.new("Really black") |
| 302 | cut.Material = Enum.Material.Glacier |
| 303 | cut.MaterialVariant = "2022 Universal" |
| 304 | cut.Anchored = true; cut.Parent = workspace |
| 305 | table.insert(angBoxes, cut) |
| 306 | end |
| 307 | do |
| 308 | local edgeDir = -0.866025*rightV + 0.5*upV |
| 309 | local edgePerp = -0.5*rightV + -0.866025*upV |
| 310 | local cut = Instance.new("Part") |
| 311 | cut.Size = Vector3.new(4.8, 0.6, 4.8) |
| 312 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2.4 * edgePerp, edgeDir, normalV) |
| 313 | cut.BrickColor = BrickColor.new("Really black") |
| 314 | cut.Material = Enum.Material.Glacier |
| 315 | cut.MaterialVariant = "2022 Universal" |
| 316 | cut.Anchored = true; cut.Parent = workspace |
| 317 | table.insert(angBoxes, cut) |
| 318 | end |
| 319 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 320 | if #cuts > 0 then |
| 321 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 322 | for _, c in ipairs(cuts) do c:Destroy() end |
| 323 | if ok and result then |
| 324 | cyl:Destroy() |
| 325 | result.Name = "EyeR"; result.Anchored = true; result.Parent = model |
| 326 | else |
| 327 | cyl.Name = "EyeR"; cyl.Parent = model |
| 328 | end |
| 329 | else |
| 330 | cyl.Name = "EyeR"; cyl.Parent = model |
| 331 | end |
| 332 | end |
| 333 | do |
| 334 | local rightV = Vector3.new(1,0,0).Unit |
| 335 | local upV = (Vector3.new(0,-1,0) - Vector3.new(0,-1,0):Dot(rightV)*rightV).Unit |
| 336 | local normalV = upV:Cross(rightV) |
| 337 | local pos = Vector3.new(0, 4, -5.8) |
| 338 | local cyl = Instance.new("Part") |
| 339 | cyl.Shape = Enum.PartType.Cylinder |
| 340 | cyl.Size = Vector3.new(0.5, 7, 7) |
| 341 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 342 | cyl.BrickColor = BrickColor.new("Maroon") |
| 343 | cyl.Material = Enum.Material.Glacier |
| 344 | cyl.MaterialVariant = "2022 Stud" |
| 345 | cyl.Anchored = true; cyl.Parent = workspace |
| 346 | local cuts = {} |
| 347 | local angBoxes = {} |
| 348 | do |
| 349 | local edgeDir = 1*rightV + 0*upV |
| 350 | local edgePerp = 0*rightV + 1*upV |
| 351 | local cut = Instance.new("Part") |
| 352 | cut.Size = Vector3.new(14, 0.7, 14) |
| 353 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 7 * edgePerp, edgeDir, normalV) |
| 354 | cut.BrickColor = BrickColor.new("Maroon") |
| 355 | cut.Material = Enum.Material.Glacier |
| 356 | cut.MaterialVariant = "2022 Stud" |
| 357 | cut.Anchored = true; cut.Parent = workspace |
| 358 | table.insert(angBoxes, cut) |
| 359 | end |
| 360 | do |
| 361 | local edgeDir = -1*rightV + 0*upV |
| 362 | local edgePerp = 0*rightV + -1*upV |
| 363 | local cut = Instance.new("Part") |
| 364 | cut.Size = Vector3.new(14, 0.7, 14) |
| 365 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 7 * edgePerp, edgeDir, normalV) |
| 366 | cut.BrickColor = BrickColor.new("Maroon") |
| 367 | cut.Material = Enum.Material.Glacier |
| 368 | cut.MaterialVariant = "2022 Stud" |
| 369 | cut.Anchored = true; cut.Parent = workspace |
| 370 | table.insert(angBoxes, cut) |
| 371 | end |
| 372 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 373 | if #cuts > 0 then |
| 374 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 375 | for _, c in ipairs(cuts) do c:Destroy() end |
| 376 | if ok and result then |
| 377 | cyl:Destroy() |
| 378 | result.Name = "Mouth"; result.Anchored = true; result.Parent = model |
| 379 | else |
| 380 | cyl.Name = "Mouth"; cyl.Parent = model |
| 381 | end |
| 382 | else |
| 383 | cyl.Name = "Mouth"; cyl.Parent = model |
| 384 | end |
| 385 | end |
| 386 | do |
| 387 | local upV = Vector3.new(0,1,0).Unit |
| 388 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 389 | local forwardV = rightV:Cross(upV) |
| 390 | local pos = Vector3.new(0, 5.04, 0) |
| 391 | local ball = Instance.new("Part") |
| 392 | ball.Shape = Enum.PartType.Ball |
| 393 | ball.Size = Vector3.new(12, 12, 12) |
| 394 | ball.CFrame = CFrame.new(pos) |
| 395 | ball.BrickColor = BrickColor.new("Bright yellow") |
| 396 | ball.Material = Enum.Material.Glacier |
| 397 | ball.MaterialVariant = "2022 Big Stud" |
| 398 | ball.Anchored = true; ball.Parent = workspace |
| 399 | local cuts = {} |
| 400 | do |
| 401 | local h = 0 |
| 402 | local cut = Instance.new("Part") |
| 403 | cut.Size = Vector3.new(24, 24, 24) |
| 404 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-12), rightV, upV) |
| 405 | cut.BrickColor = BrickColor.new("Bright yellow") |
| 406 | cut.Material = Enum.Material.Glacier |
| 407 | cut.MaterialVariant = "2022 Big Stud" |
| 408 | cut.Anchored = true; cut.Parent = workspace |
| 409 | table.insert(cuts, cut) |
| 410 | end |
| 411 | if #cuts > 0 then |
| 412 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 413 | for _, c in ipairs(cuts) do c:Destroy() end |
| 414 | if ok and result then |
| 415 | ball:Destroy() |
| 416 | result.Name = "BodyDome"; result.Anchored = true; result.Parent = model |
| 417 | else |
| 418 | ball.Name = "BodyDome"; ball.Parent = model |
| 419 | end |
| 420 | else |
| 421 | ball.Name = "BodyDome"; ball.Parent = model |
| 422 | end |
| 423 | end |
| 424 | do |
| 425 | local upV = Vector3.new(0,1,0).Unit |
| 426 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 427 | local forwardV = rightV:Cross(upV) |
| 428 | local pos = Vector3.new(0, 11, -1) |
| 429 | local ball = Instance.new("Part") |
| 430 | ball.Shape = Enum.PartType.Ball |
| 431 | ball.Size = Vector3.new(6, 6, 6) |
| 432 | ball.CFrame = CFrame.new(pos) |
| 433 | ball.BrickColor = BrickColor.new("Bright red") |
| 434 | ball.Material = Enum.Material.Glacier |
| 435 | ball.MaterialVariant = "2022 Stud" |
| 436 | ball.Anchored = true; ball.Parent = workspace |
| 437 | local cuts = {} |
| 438 | do |
| 439 | local h = 0 |
| 440 | local cut = Instance.new("Part") |
| 441 | cut.Size = Vector3.new(12, 12, 12) |
| 442 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-6), rightV, upV) |
| 443 | cut.BrickColor = BrickColor.new("Bright red") |
| 444 | cut.Material = Enum.Material.Glacier |
| 445 | cut.MaterialVariant = "2022 Stud" |
| 446 | cut.Anchored = true; cut.Parent = workspace |
| 447 | table.insert(cuts, cut) |
| 448 | end |
| 449 | if #cuts > 0 then |
| 450 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 451 | for _, c in ipairs(cuts) do c:Destroy() end |
| 452 | if ok and result then |
| 453 | ball:Destroy() |
| 454 | result.Name = "CapTop"; result.Anchored = true; result.Parent = model |
| 455 | else |
| 456 | ball.Name = "CapTop"; ball.Parent = model |
| 457 | end |
| 458 | else |
| 459 | ball.Name = "CapTop"; ball.Parent = model |
| 460 | end |
| 461 | end |
| 462 | do |
| 463 | local upV = Vector3.new(-0.707,0.707,0).Unit |
| 464 | local rightV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(upV)*upV).Unit |
| 465 | local forwardV = rightV:Cross(upV) |
| 466 | local pos = Vector3.new(-7, 9, -1) |
| 467 | local ball = Instance.new("Part") |
| 468 | ball.Shape = Enum.PartType.Ball |
| 469 | ball.Size = Vector3.new(4.4, 4.4, 4.4) |
| 470 | ball.CFrame = CFrame.new(pos) |
| 471 | ball.BrickColor = BrickColor.new("Bright red") |
| 472 | ball.Material = Enum.Material.Glacier |
| 473 | ball.MaterialVariant = "2022 Stud" |
| 474 | ball.Anchored = true; ball.Parent = workspace |
| 475 | local cuts = {} |
| 476 | do |
| 477 | local h = 0 |
| 478 | local cut = Instance.new("Part") |
| 479 | cut.Size = Vector3.new(8.8, 8.8, 8.8) |
| 480 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-4.4), rightV, upV) |
| 481 | cut.BrickColor = BrickColor.new("Bright red") |
| 482 | cut.Material = Enum.Material.Glacier |
| 483 | cut.MaterialVariant = "2022 Stud" |
| 484 | cut.Anchored = true; cut.Parent = workspace |
| 485 | table.insert(cuts, cut) |
| 486 | end |
| 487 | if #cuts > 0 then |
| 488 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 489 | for _, c in ipairs(cuts) do c:Destroy() end |
| 490 | if ok and result then |
| 491 | ball:Destroy() |
| 492 | result.Name = "CapL"; result.Anchored = true; result.Parent = model |
| 493 | else |
| 494 | ball.Name = "CapL"; ball.Parent = model |
| 495 | end |
| 496 | else |
| 497 | ball.Name = "CapL"; ball.Parent = model |
| 498 | end |
| 499 | end |
| 500 | do |
| 501 | local upV = Vector3.new(0.707,0.707,0).Unit |
| 502 | local rightV = (Vector3.new(0,0,1) - Vector3.new(0,0,1):Dot(upV)*upV).Unit |
| 503 | local forwardV = rightV:Cross(upV) |
| 504 | local pos = Vector3.new(7, 8.5, 1) |
| 505 | local ball = Instance.new("Part") |
| 506 | ball.Shape = Enum.PartType.Ball |
| 507 | ball.Size = Vector3.new(5, 5, 5) |
| 508 | ball.CFrame = CFrame.new(pos) |
| 509 | ball.BrickColor = BrickColor.new("Bright red") |
| 510 | ball.Material = Enum.Material.Glacier |
| 511 | ball.MaterialVariant = "2022 Stud" |
| 512 | ball.Anchored = true; ball.Parent = workspace |
| 513 | local cuts = {} |
| 514 | do |
| 515 | local h = 0 |
| 516 | local cut = Instance.new("Part") |
| 517 | cut.Size = Vector3.new(10, 10, 10) |
| 518 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-5), rightV, upV) |
| 519 | cut.BrickColor = BrickColor.new("Bright red") |
| 520 | cut.Material = Enum.Material.Glacier |
| 521 | cut.MaterialVariant = "2022 Stud" |
| 522 | cut.Anchored = true; cut.Parent = workspace |
| 523 | table.insert(cuts, cut) |
| 524 | end |
| 525 | if #cuts > 0 then |
| 526 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 527 | for _, c in ipairs(cuts) do c:Destroy() end |
| 528 | if ok and result then |
| 529 | ball:Destroy() |
| 530 | result.Name = "CapR"; result.Anchored = true; result.Parent = model |
| 531 | else |
| 532 | ball.Name = "CapR"; ball.Parent = model |
| 533 | end |
| 534 | else |
| 535 | ball.Name = "CapR"; ball.Parent = model |
| 536 | end |
| 537 | end |
| 538 | model.PrimaryPart = model:FindFirstChild("BodyBase") |
| 539 | print("MushroomSlime built: " .. #model:GetChildren() .. " parts") |
Loading comments...