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