Loading model...
by Maxwell Waybrook · 6/11/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: DesertCactus |
| 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 = "DesertCactus" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Institutional white"] = "2022 Stud", |
| 25 | ["Sand green"] = "2022 Stud", |
| 26 | } |
| 27 | do |
| 28 | local p = Instance.new("Part") |
| 29 | p.Name = "TrunkBase" |
| 30 | p.Size = Vector3.new(2.4, 2, 2.4) |
| 31 | p.CFrame = CFrame.new(0, 0.92, 0) |
| 32 | p.BrickColor = BrickColor.new("Sand green") |
| 33 | p.Material = Enum.Material.Glacier |
| 34 | p.MaterialVariant = "2022 Stud" |
| 35 | p.Anchored = true |
| 36 | p.Parent = model |
| 37 | end |
| 38 | do |
| 39 | local p = Instance.new("Part") |
| 40 | p.Name = "TrunkMid1" |
| 41 | p.Size = Vector3.new(2.52, 4, 2.52) |
| 42 | p.CFrame = CFrame.new(0, 3.96, 0) |
| 43 | p.BrickColor = BrickColor.new("Sand green") |
| 44 | p.Material = Enum.Material.Glacier |
| 45 | p.MaterialVariant = "2022 Stud" |
| 46 | p.Anchored = true |
| 47 | p.Parent = model |
| 48 | end |
| 49 | do |
| 50 | local p = Instance.new("Part") |
| 51 | p.Name = "TrunkMid2" |
| 52 | p.Size = Vector3.new(2.52, 4, 2.52) |
| 53 | p.CFrame = CFrame.new(0, 8, 0) |
| 54 | p.BrickColor = BrickColor.new("Sand green") |
| 55 | p.Material = Enum.Material.Glacier |
| 56 | p.MaterialVariant = "2022 Stud" |
| 57 | p.Anchored = true |
| 58 | p.Parent = model |
| 59 | end |
| 60 | do |
| 61 | local p = Instance.new("Part") |
| 62 | p.Name = "TrunkTop" |
| 63 | p.Size = Vector3.new(2.4, 2, 2.4) |
| 64 | p.CFrame = CFrame.new(0, 11.04, 0) |
| 65 | p.BrickColor = BrickColor.new("Sand green") |
| 66 | p.Material = Enum.Material.Glacier |
| 67 | p.MaterialVariant = "2022 Stud" |
| 68 | p.Anchored = true |
| 69 | p.Parent = model |
| 70 | end |
| 71 | do |
| 72 | local p = Instance.new("Part") |
| 73 | p.Name = "ArmR_Horiz" |
| 74 | p.Size = Vector3.new(2.5, 1.8, 1.8) |
| 75 | p.CFrame = CFrame.new(2.21, 6.5, 0.04) |
| 76 | p.BrickColor = BrickColor.new("Sand green") |
| 77 | p.Material = Enum.Material.Glacier |
| 78 | p.MaterialVariant = "2022 Stud" |
| 79 | p.Anchored = true |
| 80 | p.Parent = model |
| 81 | end |
| 82 | do |
| 83 | local p = Instance.new("Part") |
| 84 | p.Name = "ArmR_Vert" |
| 85 | p.Size = Vector3.new(1.8, 4, 1.8) |
| 86 | p.CFrame = CFrame.new(3.46, 8.5, 0) |
| 87 | p.BrickColor = BrickColor.new("Sand green") |
| 88 | p.Material = Enum.Material.Glacier |
| 89 | p.MaterialVariant = "2022 Stud" |
| 90 | p.Anchored = true |
| 91 | p.Parent = model |
| 92 | end |
| 93 | do |
| 94 | local p = Instance.new("Part") |
| 95 | p.Name = "ArmL_Horiz" |
| 96 | p.Size = Vector3.new(2, 1.7, 1.7) |
| 97 | p.CFrame = CFrame.new(-1.96, 4.5, 0.04) |
| 98 | p.BrickColor = BrickColor.new("Sand green") |
| 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.Name = "ArmL_Vert" |
| 107 | p.Size = Vector3.new(1.7, 3, 1.7) |
| 108 | p.CFrame = CFrame.new(-2.96, 6, 0) |
| 109 | p.BrickColor = BrickColor.new("Sand green") |
| 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.Ball |
| 118 | p.Name = "SpikeT1" |
| 119 | p.Size = Vector3.new(0.25, 0.25, 0.25) |
| 120 | p.CFrame = CFrame.new(1.26, 3, 0) |
| 121 | p.BrickColor = BrickColor.new("Institutional white") |
| 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.Ball |
| 130 | p.Name = "SpikeT2" |
| 131 | p.Size = Vector3.new(0.25, 0.25, 0.25) |
| 132 | p.CFrame = CFrame.new(-1.26, 2.5, 0) |
| 133 | p.BrickColor = BrickColor.new("Institutional white") |
| 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.Ball |
| 142 | p.Name = "SpikeT3" |
| 143 | p.Size = Vector3.new(0.25, 0.25, 0.25) |
| 144 | p.CFrame = CFrame.new(0, 5, 1.26) |
| 145 | p.BrickColor = BrickColor.new("Institutional white") |
| 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.Ball |
| 154 | p.Name = "SpikeT4" |
| 155 | p.Size = Vector3.new(0.25, 0.25, 0.25) |
| 156 | p.CFrame = CFrame.new(1.26, 7, 0) |
| 157 | p.BrickColor = BrickColor.new("Institutional white") |
| 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.Ball |
| 166 | p.Name = "SpikeT5" |
| 167 | p.Size = Vector3.new(0.25, 0.25, 0.25) |
| 168 | p.CFrame = CFrame.new(-1.26, 8.5, 0) |
| 169 | p.BrickColor = BrickColor.new("Institutional white") |
| 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.Shape = Enum.PartType.Ball |
| 178 | p.Name = "SpikeT6" |
| 179 | p.Size = Vector3.new(0.25, 0.25, 0.25) |
| 180 | p.CFrame = CFrame.new(0, 10, 1.26) |
| 181 | p.BrickColor = BrickColor.new("Institutional white") |
| 182 | p.Material = Enum.Material.Glacier |
| 183 | p.MaterialVariant = "2022 Stud" |
| 184 | p.Anchored = true |
| 185 | p.Parent = model |
| 186 | end |
| 187 | do |
| 188 | local p = Instance.new("Part") |
| 189 | p.Shape = Enum.PartType.Ball |
| 190 | p.Name = "SpikeT7" |
| 191 | p.Size = Vector3.new(0.25, 0.25, 0.25) |
| 192 | p.CFrame = CFrame.new(1.26, 11.5, 0) |
| 193 | p.BrickColor = BrickColor.new("Institutional white") |
| 194 | p.Material = Enum.Material.Glacier |
| 195 | p.MaterialVariant = "2022 Stud" |
| 196 | p.Anchored = true |
| 197 | p.Parent = model |
| 198 | end |
| 199 | do |
| 200 | local p = Instance.new("Part") |
| 201 | p.Shape = Enum.PartType.Ball |
| 202 | p.Name = "SpikeR1" |
| 203 | p.Size = Vector3.new(0.25, 0.25, 0.25) |
| 204 | p.CFrame = CFrame.new(4.405, 7.5, 0) |
| 205 | p.BrickColor = BrickColor.new("Institutional white") |
| 206 | p.Material = Enum.Material.Glacier |
| 207 | p.MaterialVariant = "2022 Stud" |
| 208 | p.Anchored = true |
| 209 | p.Parent = model |
| 210 | end |
| 211 | do |
| 212 | local p = Instance.new("Part") |
| 213 | p.Shape = Enum.PartType.Ball |
| 214 | p.Name = "SpikeR2" |
| 215 | p.Size = Vector3.new(0.25, 0.25, 0.25) |
| 216 | p.CFrame = CFrame.new(2.515, 9, 0) |
| 217 | p.BrickColor = BrickColor.new("Institutional white") |
| 218 | p.Material = Enum.Material.Glacier |
| 219 | p.MaterialVariant = "2022 Stud" |
| 220 | p.Anchored = true |
| 221 | p.Parent = model |
| 222 | end |
| 223 | do |
| 224 | local p = Instance.new("Part") |
| 225 | p.Shape = Enum.PartType.Ball |
| 226 | p.Name = "SpikeR3" |
| 227 | p.Size = Vector3.new(0.25, 0.25, 0.25) |
| 228 | p.CFrame = CFrame.new(3.46, 10, 0.945) |
| 229 | p.BrickColor = BrickColor.new("Institutional white") |
| 230 | p.Material = Enum.Material.Glacier |
| 231 | p.MaterialVariant = "2022 Stud" |
| 232 | p.Anchored = true |
| 233 | p.Parent = model |
| 234 | end |
| 235 | do |
| 236 | local p = Instance.new("Part") |
| 237 | p.Shape = Enum.PartType.Ball |
| 238 | p.Name = "SpikeL1" |
| 239 | p.Size = Vector3.new(0.25, 0.25, 0.25) |
| 240 | p.CFrame = CFrame.new(-3.8525, 5.5, 0) |
| 241 | p.BrickColor = BrickColor.new("Institutional white") |
| 242 | p.Material = Enum.Material.Glacier |
| 243 | p.MaterialVariant = "2022 Stud" |
| 244 | p.Anchored = true |
| 245 | p.Parent = model |
| 246 | end |
| 247 | do |
| 248 | local p = Instance.new("Part") |
| 249 | p.Shape = Enum.PartType.Ball |
| 250 | p.Name = "SpikeL2" |
| 251 | p.Size = Vector3.new(0.25, 0.25, 0.25) |
| 252 | p.CFrame = CFrame.new(-2.0675, 6.5, 0) |
| 253 | p.BrickColor = BrickColor.new("Institutional white") |
| 254 | p.Material = Enum.Material.Glacier |
| 255 | p.MaterialVariant = "2022 Stud" |
| 256 | p.Anchored = true |
| 257 | p.Parent = model |
| 258 | end |
| 259 | do |
| 260 | local p = Instance.new("Part") |
| 261 | p.Shape = Enum.PartType.Ball |
| 262 | p.Name = "SpikeL3" |
| 263 | p.Size = Vector3.new(0.25, 0.25, 0.25) |
| 264 | p.CFrame = CFrame.new(-2.96, 7.3, 0.8925) |
| 265 | p.BrickColor = BrickColor.new("Institutional white") |
| 266 | p.Material = Enum.Material.Glacier |
| 267 | p.MaterialVariant = "2022 Stud" |
| 268 | p.Anchored = true |
| 269 | p.Parent = model |
| 270 | end |
| 271 | do |
| 272 | local upV = Vector3.new(0,1,0).Unit |
| 273 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 274 | local forwardV = rightV:Cross(upV) |
| 275 | local pos = Vector3.new(0, 12.08, 0) |
| 276 | local ball = Instance.new("Part") |
| 277 | ball.Shape = Enum.PartType.Ball |
| 278 | ball.Size = Vector3.new(2.4, 2.4, 2.4) |
| 279 | ball.CFrame = CFrame.new(pos) |
| 280 | ball.BrickColor = BrickColor.new("Sand green") |
| 281 | ball.Material = Enum.Material.Glacier |
| 282 | ball.MaterialVariant = "2022 Stud" |
| 283 | ball.Anchored = true; ball.Parent = workspace |
| 284 | local cuts = {} |
| 285 | do |
| 286 | local h = 0 |
| 287 | local cut = Instance.new("Part") |
| 288 | cut.Size = Vector3.new(4.8, 4.8, 4.8) |
| 289 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-2.4), rightV, upV) |
| 290 | cut.BrickColor = BrickColor.new("Sand green") |
| 291 | cut.Material = Enum.Material.Glacier |
| 292 | cut.MaterialVariant = "2022 Stud" |
| 293 | cut.Anchored = true; cut.Parent = workspace |
| 294 | table.insert(cuts, cut) |
| 295 | end |
| 296 | if #cuts > 0 then |
| 297 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 298 | for _, c in ipairs(cuts) do c:Destroy() end |
| 299 | if ok and result then |
| 300 | ball:Destroy() |
| 301 | result.Name = "TrunkDome"; result.Anchored = true; result.Parent = model |
| 302 | else |
| 303 | ball.Name = "TrunkDome"; ball.Parent = model |
| 304 | end |
| 305 | else |
| 306 | ball.Name = "TrunkDome"; ball.Parent = model |
| 307 | end |
| 308 | end |
| 309 | do |
| 310 | local upV = Vector3.new(0,1,0).Unit |
| 311 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 312 | local forwardV = rightV:Cross(upV) |
| 313 | local pos = Vector3.new(3.46, 6.5, 0) |
| 314 | local ball = Instance.new("Part") |
| 315 | ball.Shape = Enum.PartType.Ball |
| 316 | ball.Size = Vector3.new(1.8, 1.8, 1.8) |
| 317 | ball.CFrame = CFrame.new(pos) |
| 318 | ball.BrickColor = BrickColor.new("Sand green") |
| 319 | ball.Material = Enum.Material.Glacier |
| 320 | ball.MaterialVariant = "2022 Stud" |
| 321 | ball.Anchored = true; ball.Parent = workspace |
| 322 | local cuts = {} |
| 323 | if #cuts > 0 then |
| 324 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 325 | for _, c in ipairs(cuts) do c:Destroy() end |
| 326 | if ok and result then |
| 327 | ball:Destroy() |
| 328 | result.Name = "ArmR_Elbow"; result.Anchored = true; result.Parent = model |
| 329 | else |
| 330 | ball.Name = "ArmR_Elbow"; ball.Parent = model |
| 331 | end |
| 332 | else |
| 333 | ball.Name = "ArmR_Elbow"; ball.Parent = model |
| 334 | end |
| 335 | end |
| 336 | do |
| 337 | local upV = Vector3.new(0,1,0).Unit |
| 338 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 339 | local forwardV = rightV:Cross(upV) |
| 340 | local pos = Vector3.new(3.46, 10.54, 0) |
| 341 | local ball = Instance.new("Part") |
| 342 | ball.Shape = Enum.PartType.Ball |
| 343 | ball.Size = Vector3.new(1.8, 1.8, 1.8) |
| 344 | ball.CFrame = CFrame.new(pos) |
| 345 | ball.BrickColor = BrickColor.new("Sand green") |
| 346 | ball.Material = Enum.Material.Glacier |
| 347 | ball.MaterialVariant = "2022 Stud" |
| 348 | ball.Anchored = true; ball.Parent = workspace |
| 349 | local cuts = {} |
| 350 | do |
| 351 | local h = 0 |
| 352 | local cut = Instance.new("Part") |
| 353 | cut.Size = Vector3.new(3.6, 3.6, 3.6) |
| 354 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-1.8), rightV, upV) |
| 355 | cut.BrickColor = BrickColor.new("Sand green") |
| 356 | cut.Material = Enum.Material.Glacier |
| 357 | cut.MaterialVariant = "2022 Stud" |
| 358 | cut.Anchored = true; cut.Parent = workspace |
| 359 | table.insert(cuts, cut) |
| 360 | end |
| 361 | if #cuts > 0 then |
| 362 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 363 | for _, c in ipairs(cuts) do c:Destroy() end |
| 364 | if ok and result then |
| 365 | ball:Destroy() |
| 366 | result.Name = "ArmR_Dome"; result.Anchored = true; result.Parent = model |
| 367 | else |
| 368 | ball.Name = "ArmR_Dome"; ball.Parent = model |
| 369 | end |
| 370 | else |
| 371 | ball.Name = "ArmR_Dome"; ball.Parent = model |
| 372 | end |
| 373 | end |
| 374 | do |
| 375 | local upV = Vector3.new(0,1,0).Unit |
| 376 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 377 | local forwardV = rightV:Cross(upV) |
| 378 | local pos = Vector3.new(-2.96, 4.5, 0) |
| 379 | local ball = Instance.new("Part") |
| 380 | ball.Shape = Enum.PartType.Ball |
| 381 | ball.Size = Vector3.new(1.7, 1.7, 1.7) |
| 382 | ball.CFrame = CFrame.new(pos) |
| 383 | ball.BrickColor = BrickColor.new("Sand green") |
| 384 | ball.Material = Enum.Material.Glacier |
| 385 | ball.MaterialVariant = "2022 Stud" |
| 386 | ball.Anchored = true; ball.Parent = workspace |
| 387 | local cuts = {} |
| 388 | if #cuts > 0 then |
| 389 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 390 | for _, c in ipairs(cuts) do c:Destroy() end |
| 391 | if ok and result then |
| 392 | ball:Destroy() |
| 393 | result.Name = "ArmL_Elbow"; result.Anchored = true; result.Parent = model |
| 394 | else |
| 395 | ball.Name = "ArmL_Elbow"; ball.Parent = model |
| 396 | end |
| 397 | else |
| 398 | ball.Name = "ArmL_Elbow"; ball.Parent = model |
| 399 | end |
| 400 | end |
| 401 | do |
| 402 | local upV = Vector3.new(0,1,0).Unit |
| 403 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 404 | local forwardV = rightV:Cross(upV) |
| 405 | local pos = Vector3.new(-2.96, 7.54, 0) |
| 406 | local ball = Instance.new("Part") |
| 407 | ball.Shape = Enum.PartType.Ball |
| 408 | ball.Size = Vector3.new(1.7, 1.7, 1.7) |
| 409 | ball.CFrame = CFrame.new(pos) |
| 410 | ball.BrickColor = BrickColor.new("Sand green") |
| 411 | ball.Material = Enum.Material.Glacier |
| 412 | ball.MaterialVariant = "2022 Stud" |
| 413 | ball.Anchored = true; ball.Parent = workspace |
| 414 | local cuts = {} |
| 415 | do |
| 416 | local h = 0 |
| 417 | local cut = Instance.new("Part") |
| 418 | cut.Size = Vector3.new(3.4, 3.4, 3.4) |
| 419 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-1.7), rightV, upV) |
| 420 | cut.BrickColor = BrickColor.new("Sand green") |
| 421 | cut.Material = Enum.Material.Glacier |
| 422 | cut.MaterialVariant = "2022 Stud" |
| 423 | cut.Anchored = true; cut.Parent = workspace |
| 424 | table.insert(cuts, cut) |
| 425 | end |
| 426 | if #cuts > 0 then |
| 427 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 428 | for _, c in ipairs(cuts) do c:Destroy() end |
| 429 | if ok and result then |
| 430 | ball:Destroy() |
| 431 | result.Name = "ArmL_Dome"; result.Anchored = true; result.Parent = model |
| 432 | else |
| 433 | ball.Name = "ArmL_Dome"; ball.Parent = model |
| 434 | end |
| 435 | else |
| 436 | ball.Name = "ArmL_Dome"; ball.Parent = model |
| 437 | end |
| 438 | end |
| 439 | model.PrimaryPart = model:FindFirstChild("TrunkMid1") |
| 440 | print("DesertCactus built: " .. #model:GetChildren() .. " parts") |
Loading comments...