Loading model...
by Matt Childd · 5/3/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: Carrot |
| 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 = "Carrot" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright green"] = "2022 Stud", |
| 25 | ["Bright orange"] = "2022 Stud", |
| 26 | ["Deep orange"] = "2022 Stud", |
| 27 | } |
| 28 | do |
| 29 | local p = Instance.new("Part") |
| 30 | p.Shape = Enum.PartType.Cylinder |
| 31 | p.Name = "Body1" |
| 32 | p.Size = Vector3.new(2, 4, 4) |
| 33 | p.CFrame = CFrame.new(0, 8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 34 | p.BrickColor = BrickColor.new("Bright orange") |
| 35 | p.Material = Enum.Material.Glacier |
| 36 | p.MaterialVariant = "2022 Stud" |
| 37 | p.Anchored = true |
| 38 | p.Parent = model |
| 39 | end |
| 40 | do |
| 41 | local p = Instance.new("Part") |
| 42 | p.Shape = Enum.PartType.Cylinder |
| 43 | p.Name = "Body2" |
| 44 | p.Size = Vector3.new(2, 3.6, 3.6) |
| 45 | p.CFrame = CFrame.new(0, 5.96, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 46 | p.BrickColor = BrickColor.new("Bright orange") |
| 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.Shape = Enum.PartType.Cylinder |
| 55 | p.Name = "Body3" |
| 56 | p.Size = Vector3.new(2, 3, 3) |
| 57 | p.CFrame = CFrame.new(0, 3.92, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 58 | p.BrickColor = BrickColor.new("Bright orange") |
| 59 | p.Material = Enum.Material.Glacier |
| 60 | p.MaterialVariant = "2022 Stud" |
| 61 | p.Anchored = true |
| 62 | p.Parent = model |
| 63 | end |
| 64 | do |
| 65 | local p = Instance.new("Part") |
| 66 | p.Shape = Enum.PartType.Cylinder |
| 67 | p.Name = "Body4" |
| 68 | p.Size = Vector3.new(2.2, 2, 2.2) |
| 69 | p.CFrame = CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 70 | p.BrickColor = BrickColor.new("Bright orange") |
| 71 | p.Material = Enum.Material.Glacier |
| 72 | p.MaterialVariant = "2022 Stud" |
| 73 | p.Anchored = true |
| 74 | p.Parent = model |
| 75 | end |
| 76 | do |
| 77 | local p = Instance.new("Part") |
| 78 | p.Shape = Enum.PartType.Cylinder |
| 79 | p.Name = "Seam1" |
| 80 | p.Size = Vector3.new(0.2, 4.1, 4.1) |
| 81 | p.CFrame = CFrame.new(0, 7, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 82 | p.BrickColor = BrickColor.new("Deep orange") |
| 83 | p.Material = Enum.Material.Glacier |
| 84 | p.MaterialVariant = "2022 Stud" |
| 85 | p.Anchored = true |
| 86 | p.Parent = model |
| 87 | end |
| 88 | do |
| 89 | local p = Instance.new("Part") |
| 90 | p.Shape = Enum.PartType.Cylinder |
| 91 | p.Name = "Seam2" |
| 92 | p.Size = Vector3.new(0.2, 3.7, 3.7) |
| 93 | p.CFrame = CFrame.new(0, 5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 94 | p.BrickColor = BrickColor.new("Deep orange") |
| 95 | p.Material = Enum.Material.Glacier |
| 96 | p.MaterialVariant = "2022 Stud" |
| 97 | p.Anchored = true |
| 98 | p.Parent = model |
| 99 | end |
| 100 | do |
| 101 | local p = Instance.new("Part") |
| 102 | p.Shape = Enum.PartType.Cylinder |
| 103 | p.Name = "Seam3" |
| 104 | p.Size = Vector3.new(0.2, 3.1, 3.1) |
| 105 | p.CFrame = CFrame.new(0, 3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 106 | p.BrickColor = BrickColor.new("Deep orange") |
| 107 | p.Material = Enum.Material.Glacier |
| 108 | p.MaterialVariant = "2022 Stud" |
| 109 | p.Anchored = true |
| 110 | p.Parent = model |
| 111 | end |
| 112 | do |
| 113 | local p = Instance.new("Part") |
| 114 | p.Shape = Enum.PartType.Cylinder |
| 115 | p.Name = "LeafCenter" |
| 116 | p.Size = Vector3.new(2, 1.5, 1.5) |
| 117 | p.CFrame = CFrame.new(0, 10.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 118 | p.BrickColor = BrickColor.new("Bright green") |
| 119 | p.Material = Enum.Material.Glacier |
| 120 | p.MaterialVariant = "2022 Stud" |
| 121 | p.Anchored = true |
| 122 | p.Parent = model |
| 123 | end |
| 124 | do |
| 125 | local p = Instance.new("Part") |
| 126 | p.Shape = Enum.PartType.Cylinder |
| 127 | p.Name = "LeafLeft" |
| 128 | p.Size = Vector3.new(1.8, 1.16, 1.16) |
| 129 | p.CFrame = CFrame.new(-1, 10.2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(60)) |
| 130 | p.BrickColor = BrickColor.new("Bright green") |
| 131 | p.Material = Enum.Material.Glacier |
| 132 | p.MaterialVariant = "2022 Stud" |
| 133 | p.Anchored = true |
| 134 | p.Parent = model |
| 135 | end |
| 136 | do |
| 137 | local p = Instance.new("Part") |
| 138 | p.Shape = Enum.PartType.Cylinder |
| 139 | p.Name = "LeafRight" |
| 140 | p.Size = Vector3.new(1.8, 1.16, 1.16) |
| 141 | p.CFrame = CFrame.new(1, 10.2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(120)) |
| 142 | p.BrickColor = BrickColor.new("Bright green") |
| 143 | p.Material = Enum.Material.Glacier |
| 144 | p.MaterialVariant = "2022 Stud" |
| 145 | p.Anchored = true |
| 146 | p.Parent = model |
| 147 | end |
| 148 | do |
| 149 | local p = Instance.new("Part") |
| 150 | p.Shape = Enum.PartType.Cylinder |
| 151 | p.Name = "LeafFront" |
| 152 | p.Size = Vector3.new(1.8, 1.2, 1.2) |
| 153 | p.CFrame = CFrame.new(0, 10.2, -1) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(90)) |
| 154 | p.BrickColor = BrickColor.new("Bright green") |
| 155 | p.Material = Enum.Material.Glacier |
| 156 | p.MaterialVariant = "2022 Stud" |
| 157 | p.Anchored = true |
| 158 | p.Parent = model |
| 159 | end |
| 160 | do |
| 161 | local p = Instance.new("Part") |
| 162 | p.Shape = Enum.PartType.Cylinder |
| 163 | p.Name = "LeafBack" |
| 164 | p.Size = Vector3.new(1.8, 1.2, 1.2) |
| 165 | p.CFrame = CFrame.new(0, 10.2, 1) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(90)) |
| 166 | p.BrickColor = BrickColor.new("Bright green") |
| 167 | p.Material = Enum.Material.Glacier |
| 168 | p.MaterialVariant = "2022 Stud" |
| 169 | p.Anchored = true |
| 170 | p.Parent = model |
| 171 | end |
| 172 | do |
| 173 | local p = Instance.new("Part") |
| 174 | p.Name = "Sparkle1" |
| 175 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 176 | p.CFrame = CFrame.new(2.5, 8, 2.5) * CFrame.Angles(math.rad(45), math.rad(45), math.rad(0)) |
| 177 | p.BrickColor = BrickColor.new("Toothpaste") |
| 178 | p.Material = Enum.Material.Neon |
| 179 | p.Anchored = true |
| 180 | p.Parent = model |
| 181 | end |
| 182 | do |
| 183 | local p = Instance.new("Part") |
| 184 | p.Name = "Sparkle2" |
| 185 | p.Size = Vector3.new(0.3, 0.3, 0.3) |
| 186 | p.CFrame = CFrame.new(-3, 4, -2) * CFrame.Angles(math.rad(45), math.rad(45), math.rad(0)) |
| 187 | p.BrickColor = BrickColor.new("Toothpaste") |
| 188 | p.Material = Enum.Material.Neon |
| 189 | p.Anchored = true |
| 190 | p.Parent = model |
| 191 | end |
| 192 | do |
| 193 | local p = Instance.new("Part") |
| 194 | p.Name = "Sparkle3" |
| 195 | p.Size = Vector3.new(0.5, 0.5, 0.5) |
| 196 | p.CFrame = CFrame.new(2, 2, -2) * CFrame.Angles(math.rad(45), math.rad(45), math.rad(0)) |
| 197 | p.BrickColor = BrickColor.new("Toothpaste") |
| 198 | p.Material = Enum.Material.Neon |
| 199 | p.Anchored = true |
| 200 | p.Parent = model |
| 201 | end |
| 202 | do |
| 203 | local upV = Vector3.new(0,-1,0).Unit |
| 204 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 205 | local forwardV = rightV:Cross(upV) |
| 206 | local pos = Vector3.new(0, 1, 0) |
| 207 | local ball = Instance.new("Part") |
| 208 | ball.Shape = Enum.PartType.Ball |
| 209 | ball.Size = Vector3.new(2.2, 2.2, 2.2) |
| 210 | ball.CFrame = CFrame.new(pos) |
| 211 | ball.BrickColor = BrickColor.new("Bright orange") |
| 212 | ball.Material = Enum.Material.Glacier |
| 213 | ball.MaterialVariant = "2022 Stud" |
| 214 | ball.Anchored = true; ball.Parent = workspace |
| 215 | local cuts = {} |
| 216 | do |
| 217 | local h = 0 |
| 218 | local cut = Instance.new("Part") |
| 219 | cut.Size = Vector3.new(4.4, 4.4, 4.4) |
| 220 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-2.2), rightV, upV) |
| 221 | cut.BrickColor = BrickColor.new("Bright orange") |
| 222 | cut.Material = Enum.Material.Glacier |
| 223 | cut.MaterialVariant = "2022 Stud" |
| 224 | cut.Anchored = true; cut.Parent = workspace |
| 225 | table.insert(cuts, cut) |
| 226 | end |
| 227 | if #cuts > 0 then |
| 228 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 229 | for _, c in ipairs(cuts) do c:Destroy() end |
| 230 | if ok and result then |
| 231 | ball:Destroy() |
| 232 | result.Name = "Tip"; result.Anchored = true; result.Parent = model |
| 233 | else |
| 234 | ball.Name = "Tip"; ball.Parent = model |
| 235 | end |
| 236 | else |
| 237 | ball.Name = "Tip"; ball.Parent = model |
| 238 | end |
| 239 | end |
| 240 | do |
| 241 | local upV = Vector3.new(0,1,0).Unit |
| 242 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 243 | local forwardV = rightV:Cross(upV) |
| 244 | local pos = Vector3.new(0, 9.04, 0) |
| 245 | local ball = Instance.new("Part") |
| 246 | ball.Shape = Enum.PartType.Ball |
| 247 | ball.Size = Vector3.new(4, 4, 4) |
| 248 | ball.CFrame = CFrame.new(pos) |
| 249 | ball.BrickColor = BrickColor.new("Bright orange") |
| 250 | ball.Material = Enum.Material.Glacier |
| 251 | ball.MaterialVariant = "2022 Stud" |
| 252 | ball.Anchored = true; ball.Parent = workspace |
| 253 | local cuts = {} |
| 254 | do |
| 255 | local h = 0 |
| 256 | local cut = Instance.new("Part") |
| 257 | cut.Size = Vector3.new(8, 8, 8) |
| 258 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-4), rightV, upV) |
| 259 | cut.BrickColor = BrickColor.new("Bright orange") |
| 260 | cut.Material = Enum.Material.Glacier |
| 261 | cut.MaterialVariant = "2022 Stud" |
| 262 | cut.Anchored = true; cut.Parent = workspace |
| 263 | table.insert(cuts, cut) |
| 264 | end |
| 265 | if #cuts > 0 then |
| 266 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 267 | for _, c in ipairs(cuts) do c:Destroy() end |
| 268 | if ok and result then |
| 269 | ball:Destroy() |
| 270 | result.Name = "TopDome"; result.Anchored = true; result.Parent = model |
| 271 | else |
| 272 | ball.Name = "TopDome"; ball.Parent = model |
| 273 | end |
| 274 | else |
| 275 | ball.Name = "TopDome"; ball.Parent = model |
| 276 | end |
| 277 | end |
| 278 | do |
| 279 | local upV = Vector3.new(0,1,0).Unit |
| 280 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 281 | local forwardV = rightV:Cross(upV) |
| 282 | local pos = Vector3.new(0, 11.54, 0) |
| 283 | local ball = Instance.new("Part") |
| 284 | ball.Shape = Enum.PartType.Ball |
| 285 | ball.Size = Vector3.new(1.5, 1.5, 1.5) |
| 286 | ball.CFrame = CFrame.new(pos) |
| 287 | ball.BrickColor = BrickColor.new("Bright green") |
| 288 | ball.Material = Enum.Material.Glacier |
| 289 | ball.MaterialVariant = "2022 Stud" |
| 290 | ball.Anchored = true; ball.Parent = workspace |
| 291 | local cuts = {} |
| 292 | do |
| 293 | local h = 0 |
| 294 | local cut = Instance.new("Part") |
| 295 | cut.Size = Vector3.new(3, 3, 3) |
| 296 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-1.5), rightV, upV) |
| 297 | cut.BrickColor = BrickColor.new("Bright green") |
| 298 | cut.Material = Enum.Material.Glacier |
| 299 | cut.MaterialVariant = "2022 Stud" |
| 300 | cut.Anchored = true; cut.Parent = workspace |
| 301 | table.insert(cuts, cut) |
| 302 | end |
| 303 | if #cuts > 0 then |
| 304 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 305 | for _, c in ipairs(cuts) do c:Destroy() end |
| 306 | if ok and result then |
| 307 | ball:Destroy() |
| 308 | result.Name = "LeafCenterTip"; result.Anchored = true; result.Parent = model |
| 309 | else |
| 310 | ball.Name = "LeafCenterTip"; ball.Parent = model |
| 311 | end |
| 312 | else |
| 313 | ball.Name = "LeafCenterTip"; ball.Parent = model |
| 314 | end |
| 315 | end |
| 316 | do |
| 317 | local upV = Vector3.new(-0.866,0.5,0).Unit |
| 318 | local rightV = (Vector3.new(0.5,0.866,0) - Vector3.new(0.5,0.866,0):Dot(upV)*upV).Unit |
| 319 | local forwardV = rightV:Cross(upV) |
| 320 | local pos = Vector3.new(-1.5, 11, 0) |
| 321 | local ball = Instance.new("Part") |
| 322 | ball.Shape = Enum.PartType.Ball |
| 323 | ball.Size = Vector3.new(1.2, 1.2, 1.2) |
| 324 | ball.CFrame = CFrame.new(pos) |
| 325 | ball.BrickColor = BrickColor.new("Bright green") |
| 326 | ball.Material = Enum.Material.Glacier |
| 327 | ball.MaterialVariant = "2022 Stud" |
| 328 | ball.Anchored = true; ball.Parent = workspace |
| 329 | local cuts = {} |
| 330 | do |
| 331 | local h = 0 |
| 332 | local cut = Instance.new("Part") |
| 333 | cut.Size = Vector3.new(2.4, 2.4, 2.4) |
| 334 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-1.2), rightV, upV) |
| 335 | cut.BrickColor = BrickColor.new("Bright green") |
| 336 | cut.Material = Enum.Material.Glacier |
| 337 | cut.MaterialVariant = "2022 Stud" |
| 338 | cut.Anchored = true; cut.Parent = workspace |
| 339 | table.insert(cuts, cut) |
| 340 | end |
| 341 | if #cuts > 0 then |
| 342 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 343 | for _, c in ipairs(cuts) do c:Destroy() end |
| 344 | if ok and result then |
| 345 | ball:Destroy() |
| 346 | result.Name = "LeafLeftTip"; result.Anchored = true; result.Parent = model |
| 347 | else |
| 348 | ball.Name = "LeafLeftTip"; ball.Parent = model |
| 349 | end |
| 350 | else |
| 351 | ball.Name = "LeafLeftTip"; ball.Parent = model |
| 352 | end |
| 353 | end |
| 354 | do |
| 355 | local upV = Vector3.new(0.866,0.5,0).Unit |
| 356 | local rightV = (Vector3.new(-0.5,0.866,0) - Vector3.new(-0.5,0.866,0):Dot(upV)*upV).Unit |
| 357 | local forwardV = rightV:Cross(upV) |
| 358 | local pos = Vector3.new(1.5, 11, 0) |
| 359 | local ball = Instance.new("Part") |
| 360 | ball.Shape = Enum.PartType.Ball |
| 361 | ball.Size = Vector3.new(1.2, 1.2, 1.2) |
| 362 | ball.CFrame = CFrame.new(pos) |
| 363 | ball.BrickColor = BrickColor.new("Bright green") |
| 364 | ball.Material = Enum.Material.Glacier |
| 365 | ball.MaterialVariant = "2022 Stud" |
| 366 | ball.Anchored = true; ball.Parent = workspace |
| 367 | local cuts = {} |
| 368 | do |
| 369 | local h = 0 |
| 370 | local cut = Instance.new("Part") |
| 371 | cut.Size = Vector3.new(2.4, 2.4, 2.4) |
| 372 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-1.2), rightV, upV) |
| 373 | cut.BrickColor = BrickColor.new("Bright green") |
| 374 | cut.Material = Enum.Material.Glacier |
| 375 | cut.MaterialVariant = "2022 Stud" |
| 376 | cut.Anchored = true; cut.Parent = workspace |
| 377 | table.insert(cuts, cut) |
| 378 | end |
| 379 | if #cuts > 0 then |
| 380 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 381 | for _, c in ipairs(cuts) do c:Destroy() end |
| 382 | if ok and result then |
| 383 | ball:Destroy() |
| 384 | result.Name = "LeafRightTip"; result.Anchored = true; result.Parent = model |
| 385 | else |
| 386 | ball.Name = "LeafRightTip"; ball.Parent = model |
| 387 | end |
| 388 | else |
| 389 | ball.Name = "LeafRightTip"; ball.Parent = model |
| 390 | end |
| 391 | end |
| 392 | do |
| 393 | local upV = Vector3.new(0,0.5,-0.866).Unit |
| 394 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 395 | local forwardV = rightV:Cross(upV) |
| 396 | local pos = Vector3.new(0, 11, -1.5) |
| 397 | local ball = Instance.new("Part") |
| 398 | ball.Shape = Enum.PartType.Ball |
| 399 | ball.Size = Vector3.new(1.2, 1.2, 1.2) |
| 400 | ball.CFrame = CFrame.new(pos) |
| 401 | ball.BrickColor = BrickColor.new("Bright green") |
| 402 | ball.Material = Enum.Material.Glacier |
| 403 | ball.MaterialVariant = "2022 Stud" |
| 404 | ball.Anchored = true; ball.Parent = workspace |
| 405 | local cuts = {} |
| 406 | do |
| 407 | local h = 0 |
| 408 | local cut = Instance.new("Part") |
| 409 | cut.Size = Vector3.new(2.4, 2.4, 2.4) |
| 410 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-1.2), rightV, upV) |
| 411 | cut.BrickColor = BrickColor.new("Bright green") |
| 412 | cut.Material = Enum.Material.Glacier |
| 413 | cut.MaterialVariant = "2022 Stud" |
| 414 | cut.Anchored = true; cut.Parent = workspace |
| 415 | table.insert(cuts, cut) |
| 416 | end |
| 417 | if #cuts > 0 then |
| 418 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 419 | for _, c in ipairs(cuts) do c:Destroy() end |
| 420 | if ok and result then |
| 421 | ball:Destroy() |
| 422 | result.Name = "LeafFrontTip"; result.Anchored = true; result.Parent = model |
| 423 | else |
| 424 | ball.Name = "LeafFrontTip"; ball.Parent = model |
| 425 | end |
| 426 | else |
| 427 | ball.Name = "LeafFrontTip"; ball.Parent = model |
| 428 | end |
| 429 | end |
| 430 | do |
| 431 | local upV = Vector3.new(0,0.5,0.866).Unit |
| 432 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 433 | local forwardV = rightV:Cross(upV) |
| 434 | local pos = Vector3.new(0, 11, 1.5) |
| 435 | local ball = Instance.new("Part") |
| 436 | ball.Shape = Enum.PartType.Ball |
| 437 | ball.Size = Vector3.new(1.2, 1.2, 1.2) |
| 438 | ball.CFrame = CFrame.new(pos) |
| 439 | ball.BrickColor = BrickColor.new("Bright green") |
| 440 | ball.Material = Enum.Material.Glacier |
| 441 | ball.MaterialVariant = "2022 Stud" |
| 442 | ball.Anchored = true; ball.Parent = workspace |
| 443 | local cuts = {} |
| 444 | do |
| 445 | local h = 0 |
| 446 | local cut = Instance.new("Part") |
| 447 | cut.Size = Vector3.new(2.4, 2.4, 2.4) |
| 448 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-1.2), rightV, upV) |
| 449 | cut.BrickColor = BrickColor.new("Bright green") |
| 450 | cut.Material = Enum.Material.Glacier |
| 451 | cut.MaterialVariant = "2022 Stud" |
| 452 | cut.Anchored = true; cut.Parent = workspace |
| 453 | table.insert(cuts, cut) |
| 454 | end |
| 455 | if #cuts > 0 then |
| 456 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 457 | for _, c in ipairs(cuts) do c:Destroy() end |
| 458 | if ok and result then |
| 459 | ball:Destroy() |
| 460 | result.Name = "LeafBackTip"; result.Anchored = true; result.Parent = model |
| 461 | else |
| 462 | ball.Name = "LeafBackTip"; ball.Parent = model |
| 463 | end |
| 464 | else |
| 465 | ball.Name = "LeafBackTip"; ball.Parent = model |
| 466 | end |
| 467 | end |
| 468 | model.PrimaryPart = model:FindFirstChild("Body1") |
| 469 | print("Carrot built: " .. #model:GetChildren() .. " parts") |
Loading comments...