Loading model...
by BLIT ZENON · 11/4/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: StylizedTree |
| 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 = "StylizedTree" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright green"] = "2022 Glue", |
| 25 | ["Dark green"] = "2022 Glue", |
| 26 | ["Reddish brown"] = "2022 Small Stud", |
| 27 | } |
| 28 | do |
| 29 | local p = Instance.new("Part") |
| 30 | p.Name = "TrunkBase" |
| 31 | p.Size = Vector3.new(1.2, 4, 1.2) |
| 32 | p.CFrame = CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 33 | p.BrickColor = BrickColor.new("Reddish brown") |
| 34 | p.Material = Enum.Material.Glacier |
| 35 | p.MaterialVariant = "2022 Small Stud" |
| 36 | p.Anchored = true |
| 37 | p.Parent = model |
| 38 | end |
| 39 | do |
| 40 | local p = Instance.new("Part") |
| 41 | p.Shape = Enum.PartType.Cylinder |
| 42 | p.Name = "BranchL_Main" |
| 43 | p.Size = Vector3.new(3.905125, 0.9, 0.9) |
| 44 | p.CFrame = CFrame.new(-1.5, 4.75, 0) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(-140.194429)) |
| 45 | p.BrickColor = BrickColor.new("Reddish brown") |
| 46 | p.Material = Enum.Material.Glacier |
| 47 | p.MaterialVariant = "2022 Small Stud" |
| 48 | p.Anchored = true |
| 49 | p.Parent = model |
| 50 | end |
| 51 | do |
| 52 | local p = Instance.new("Part") |
| 53 | p.Shape = Enum.PartType.Cylinder |
| 54 | p.Name = "BranchR_Main" |
| 55 | p.Size = Vector3.new(3.905125, 0.9, 0.9) |
| 56 | p.CFrame = CFrame.new(1.5, 4.75, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(39.805571)) |
| 57 | p.BrickColor = BrickColor.new("Reddish brown") |
| 58 | p.Material = Enum.Material.Glacier |
| 59 | p.MaterialVariant = "2022 Small Stud" |
| 60 | p.Anchored = true |
| 61 | p.Parent = model |
| 62 | end |
| 63 | do |
| 64 | local p = Instance.new("Part") |
| 65 | p.Shape = Enum.PartType.Cylinder |
| 66 | p.Name = "BranchF_Main" |
| 67 | p.Size = Vector3.new(3.023243, 0.8, 0.8) |
| 68 | p.CFrame = CFrame.new(0, 4.65, -1.25) * CFrame.Angles(math.rad(34.215702), math.rad(90), math.rad(0)) |
| 69 | p.BrickColor = BrickColor.new("Reddish brown") |
| 70 | p.Material = Enum.Material.Glacier |
| 71 | p.MaterialVariant = "2022 Small Stud" |
| 72 | p.Anchored = true |
| 73 | p.Parent = model |
| 74 | end |
| 75 | do |
| 76 | local p = Instance.new("Part") |
| 77 | p.Shape = Enum.PartType.Cylinder |
| 78 | p.Name = "BranchB_Main" |
| 79 | p.Size = Vector3.new(3.023243, 0.8, 0.8) |
| 80 | p.CFrame = CFrame.new(0, 4.65, 1.25) * CFrame.Angles(math.rad(-34.215702), math.rad(-90), math.rad(0)) |
| 81 | p.BrickColor = BrickColor.new("Reddish brown") |
| 82 | p.Material = Enum.Material.Glacier |
| 83 | p.MaterialVariant = "2022 Small Stud" |
| 84 | p.Anchored = true |
| 85 | p.Parent = model |
| 86 | end |
| 87 | do |
| 88 | local p = Instance.new("Part") |
| 89 | p.Shape = Enum.PartType.Cylinder |
| 90 | p.Name = "BranchL_Sub1" |
| 91 | p.Size = Vector3.new(2.915476, 0.5, 0.5) |
| 92 | p.CFrame = CFrame.new(-3.5, 6.25, 0.75) * CFrame.Angles(math.rad(-180), math.rad(-36.869898), math.rad(-149.036243)) |
| 93 | p.BrickColor = BrickColor.new("Reddish brown") |
| 94 | p.Material = Enum.Material.Glacier |
| 95 | p.MaterialVariant = "2022 Small Stud" |
| 96 | p.Anchored = true |
| 97 | p.Parent = model |
| 98 | end |
| 99 | do |
| 100 | local p = Instance.new("Part") |
| 101 | p.Shape = Enum.PartType.Cylinder |
| 102 | p.Name = "BranchL_Sub2" |
| 103 | p.Size = Vector3.new(3.354102, 0.5, 0.5) |
| 104 | p.CFrame = CFrame.new(-3.75, 6.5, -0.5) * CFrame.Angles(math.rad(-180), math.rad(21.801409), math.rad(-143.395724)) |
| 105 | p.BrickColor = BrickColor.new("Reddish brown") |
| 106 | p.Material = Enum.Material.Glacier |
| 107 | p.MaterialVariant = "2022 Small Stud" |
| 108 | p.Anchored = true |
| 109 | p.Parent = model |
| 110 | end |
| 111 | do |
| 112 | local p = Instance.new("Part") |
| 113 | p.Shape = Enum.PartType.Cylinder |
| 114 | p.Name = "BranchR_Sub1" |
| 115 | p.Size = Vector3.new(2.915476, 0.5, 0.5) |
| 116 | p.CFrame = CFrame.new(3.5, 6.25, 0.75) * CFrame.Angles(math.rad(0), math.rad(-36.869898), math.rad(30.963757)) |
| 117 | p.BrickColor = BrickColor.new("Reddish brown") |
| 118 | p.Material = Enum.Material.Glacier |
| 119 | p.MaterialVariant = "2022 Small Stud" |
| 120 | p.Anchored = true |
| 121 | p.Parent = model |
| 122 | end |
| 123 | do |
| 124 | local p = Instance.new("Part") |
| 125 | p.Shape = Enum.PartType.Cylinder |
| 126 | p.Name = "BranchR_Sub2" |
| 127 | p.Size = Vector3.new(3.354102, 0.5, 0.5) |
| 128 | p.CFrame = CFrame.new(3.75, 6.5, -0.5) * CFrame.Angles(math.rad(0), math.rad(21.801409), math.rad(36.604276)) |
| 129 | p.BrickColor = BrickColor.new("Reddish brown") |
| 130 | p.Material = Enum.Material.Glacier |
| 131 | p.MaterialVariant = "2022 Small Stud" |
| 132 | p.Anchored = true |
| 133 | p.Parent = model |
| 134 | end |
| 135 | do |
| 136 | local p = Instance.new("WedgePart") |
| 137 | p.Name = "Root_0" |
| 138 | p.Size = Vector3.new(0.8, 0.5, 0.8) |
| 139 | p.CFrame = CFrame.new(0.6, 0.25, 0) |
| 140 | p.BrickColor = BrickColor.new("Reddish brown") |
| 141 | p.Material = Enum.Material.Glacier |
| 142 | p.MaterialVariant = "2022 Small Stud" |
| 143 | p.Anchored = true |
| 144 | p.Parent = model |
| 145 | end |
| 146 | do |
| 147 | local p = Instance.new("WedgePart") |
| 148 | p.Name = "Root_1" |
| 149 | p.Size = Vector3.new(0.8, 0.5, 0.8) |
| 150 | p.CFrame = CFrame.new(0, 0.25, 0.6) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 151 | p.BrickColor = BrickColor.new("Reddish brown") |
| 152 | p.Material = Enum.Material.Glacier |
| 153 | p.MaterialVariant = "2022 Small Stud" |
| 154 | p.Anchored = true |
| 155 | p.Parent = model |
| 156 | end |
| 157 | do |
| 158 | local p = Instance.new("WedgePart") |
| 159 | p.Name = "Root_2" |
| 160 | p.Size = Vector3.new(0.8, 0.5, 0.8) |
| 161 | p.CFrame = CFrame.new(-0.6, 0.25, 0) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(0)) |
| 162 | p.BrickColor = BrickColor.new("Reddish brown") |
| 163 | p.Material = Enum.Material.Glacier |
| 164 | p.MaterialVariant = "2022 Small Stud" |
| 165 | p.Anchored = true |
| 166 | p.Parent = model |
| 167 | end |
| 168 | do |
| 169 | local p = Instance.new("WedgePart") |
| 170 | p.Name = "Root_3" |
| 171 | p.Size = Vector3.new(0.8, 0.5, 0.8) |
| 172 | p.CFrame = CFrame.new(0, 0.25, -0.6) * CFrame.Angles(math.rad(0), math.rad(270), math.rad(0)) |
| 173 | p.BrickColor = BrickColor.new("Reddish brown") |
| 174 | p.Material = Enum.Material.Glacier |
| 175 | p.MaterialVariant = "2022 Small Stud" |
| 176 | p.Anchored = true |
| 177 | p.Parent = model |
| 178 | end |
| 179 | do |
| 180 | local p = Instance.new("Part") |
| 181 | p.Shape = Enum.PartType.Ball |
| 182 | p.Name = "DetailLeaf1" |
| 183 | p.Size = Vector3.new(1.5, 1.5, 1.5) |
| 184 | p.CFrame = CFrame.new(-2, 9.5, 1) |
| 185 | p.BrickColor = BrickColor.new("Bright green") |
| 186 | p.Material = Enum.Material.Glacier |
| 187 | p.MaterialVariant = "2022 Glue" |
| 188 | p.Anchored = true |
| 189 | p.Parent = model |
| 190 | end |
| 191 | do |
| 192 | local p = Instance.new("Part") |
| 193 | p.Shape = Enum.PartType.Ball |
| 194 | p.Name = "DetailLeaf2" |
| 195 | p.Size = Vector3.new(1.2, 1.2, 1.2) |
| 196 | p.CFrame = CFrame.new(2, 9.2, -1.5) |
| 197 | p.BrickColor = BrickColor.new("Dark green") |
| 198 | p.Material = Enum.Material.Glacier |
| 199 | p.MaterialVariant = "2022 Glue" |
| 200 | p.Anchored = true |
| 201 | p.Parent = model |
| 202 | end |
| 203 | do |
| 204 | local p = Instance.new("Part") |
| 205 | p.Shape = Enum.PartType.Ball |
| 206 | p.Name = "DetailLeaf3" |
| 207 | p.Size = Vector3.new(1.8, 1.8, 1.8) |
| 208 | p.CFrame = CFrame.new(0, 11, 0.5) |
| 209 | p.BrickColor = BrickColor.new("Bright green") |
| 210 | p.Material = Enum.Material.Glacier |
| 211 | p.MaterialVariant = "2022 Glue" |
| 212 | p.Anchored = true |
| 213 | p.Parent = model |
| 214 | end |
| 215 | do |
| 216 | local upV = Vector3.new(0,1,0).Unit |
| 217 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 218 | local forwardV = rightV:Cross(upV) |
| 219 | local pos = Vector3.new(0, 8.5, 0) |
| 220 | local ball = Instance.new("Part") |
| 221 | ball.Shape = Enum.PartType.Ball |
| 222 | ball.Size = Vector3.new(7, 7, 7) |
| 223 | ball.CFrame = CFrame.new(pos) |
| 224 | ball.BrickColor = BrickColor.new("Dark green") |
| 225 | ball.Material = Enum.Material.Glacier |
| 226 | ball.MaterialVariant = "2022 Glue" |
| 227 | ball.Anchored = true; ball.Parent = workspace |
| 228 | local cuts = {} |
| 229 | if #cuts > 0 then |
| 230 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 231 | for _, c in ipairs(cuts) do c:Destroy() end |
| 232 | if ok and result then |
| 233 | ball:Destroy() |
| 234 | result.Name = "LeafCenter"; result.Anchored = true; result.Parent = model |
| 235 | else |
| 236 | ball.Name = "LeafCenter"; ball.Parent = model |
| 237 | end |
| 238 | else |
| 239 | ball.Name = "LeafCenter"; ball.Parent = model |
| 240 | end |
| 241 | end |
| 242 | do |
| 243 | local upV = Vector3.new(0,1,0).Unit |
| 244 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 245 | local forwardV = rightV:Cross(upV) |
| 246 | local pos = Vector3.new(0, 10, 0) |
| 247 | local ball = Instance.new("Part") |
| 248 | ball.Shape = Enum.PartType.Ball |
| 249 | ball.Size = Vector3.new(5, 5, 5) |
| 250 | ball.CFrame = CFrame.new(pos) |
| 251 | ball.BrickColor = BrickColor.new("Bright green") |
| 252 | ball.Material = Enum.Material.Glacier |
| 253 | ball.MaterialVariant = "2022 Glue" |
| 254 | ball.Anchored = true; ball.Parent = workspace |
| 255 | local cuts = {} |
| 256 | if #cuts > 0 then |
| 257 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 258 | for _, c in ipairs(cuts) do c:Destroy() end |
| 259 | if ok and result then |
| 260 | ball:Destroy() |
| 261 | result.Name = "LeafCenterTop"; result.Anchored = true; result.Parent = model |
| 262 | else |
| 263 | ball.Name = "LeafCenterTop"; ball.Parent = model |
| 264 | end |
| 265 | else |
| 266 | ball.Name = "LeafCenterTop"; ball.Parent = model |
| 267 | end |
| 268 | end |
| 269 | do |
| 270 | local upV = Vector3.new(0,1,0).Unit |
| 271 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 272 | local forwardV = rightV:Cross(upV) |
| 273 | local pos = Vector3.new(-4.5, 7.5, 1.5) |
| 274 | local ball = Instance.new("Part") |
| 275 | ball.Shape = Enum.PartType.Ball |
| 276 | ball.Size = Vector3.new(5.6, 5.6, 5.6) |
| 277 | ball.CFrame = CFrame.new(pos) |
| 278 | ball.BrickColor = BrickColor.new("Dark green") |
| 279 | ball.Material = Enum.Material.Glacier |
| 280 | ball.MaterialVariant = "2022 Glue" |
| 281 | ball.Anchored = true; ball.Parent = workspace |
| 282 | local cuts = {} |
| 283 | if #cuts > 0 then |
| 284 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 285 | for _, c in ipairs(cuts) do c:Destroy() end |
| 286 | if ok and result then |
| 287 | ball:Destroy() |
| 288 | result.Name = "LeafL1"; result.Anchored = true; result.Parent = model |
| 289 | else |
| 290 | ball.Name = "LeafL1"; ball.Parent = model |
| 291 | end |
| 292 | else |
| 293 | ball.Name = "LeafL1"; ball.Parent = model |
| 294 | end |
| 295 | end |
| 296 | do |
| 297 | local upV = Vector3.new(0,1,0).Unit |
| 298 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 299 | local forwardV = rightV:Cross(upV) |
| 300 | local pos = Vector3.new(-5, 8, -1) |
| 301 | local ball = Instance.new("Part") |
| 302 | ball.Shape = Enum.PartType.Ball |
| 303 | ball.Size = Vector3.new(5, 5, 5) |
| 304 | ball.CFrame = CFrame.new(pos) |
| 305 | ball.BrickColor = BrickColor.new("Bright green") |
| 306 | ball.Material = Enum.Material.Glacier |
| 307 | ball.MaterialVariant = "2022 Glue" |
| 308 | ball.Anchored = true; ball.Parent = workspace |
| 309 | local cuts = {} |
| 310 | if #cuts > 0 then |
| 311 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 312 | for _, c in ipairs(cuts) do c:Destroy() end |
| 313 | if ok and result then |
| 314 | ball:Destroy() |
| 315 | result.Name = "LeafL2"; result.Anchored = true; result.Parent = model |
| 316 | else |
| 317 | ball.Name = "LeafL2"; ball.Parent = model |
| 318 | end |
| 319 | else |
| 320 | ball.Name = "LeafL2"; ball.Parent = model |
| 321 | end |
| 322 | end |
| 323 | do |
| 324 | local upV = Vector3.new(0,1,0).Unit |
| 325 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 326 | local forwardV = rightV:Cross(upV) |
| 327 | local pos = Vector3.new(4.5, 7.5, 1.5) |
| 328 | local ball = Instance.new("Part") |
| 329 | ball.Shape = Enum.PartType.Ball |
| 330 | ball.Size = Vector3.new(5.6, 5.6, 5.6) |
| 331 | ball.CFrame = CFrame.new(pos) |
| 332 | ball.BrickColor = BrickColor.new("Dark green") |
| 333 | ball.Material = Enum.Material.Glacier |
| 334 | ball.MaterialVariant = "2022 Glue" |
| 335 | ball.Anchored = true; ball.Parent = workspace |
| 336 | local cuts = {} |
| 337 | if #cuts > 0 then |
| 338 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 339 | for _, c in ipairs(cuts) do c:Destroy() end |
| 340 | if ok and result then |
| 341 | ball:Destroy() |
| 342 | result.Name = "LeafR1"; result.Anchored = true; result.Parent = model |
| 343 | else |
| 344 | ball.Name = "LeafR1"; ball.Parent = model |
| 345 | end |
| 346 | else |
| 347 | ball.Name = "LeafR1"; ball.Parent = model |
| 348 | end |
| 349 | end |
| 350 | do |
| 351 | local upV = Vector3.new(0,1,0).Unit |
| 352 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 353 | local forwardV = rightV:Cross(upV) |
| 354 | local pos = Vector3.new(5, 8, -1) |
| 355 | local ball = Instance.new("Part") |
| 356 | ball.Shape = Enum.PartType.Ball |
| 357 | ball.Size = Vector3.new(5, 5, 5) |
| 358 | ball.CFrame = CFrame.new(pos) |
| 359 | ball.BrickColor = BrickColor.new("Bright green") |
| 360 | ball.Material = Enum.Material.Glacier |
| 361 | ball.MaterialVariant = "2022 Glue" |
| 362 | ball.Anchored = true; ball.Parent = workspace |
| 363 | local cuts = {} |
| 364 | if #cuts > 0 then |
| 365 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 366 | for _, c in ipairs(cuts) do c:Destroy() end |
| 367 | if ok and result then |
| 368 | ball:Destroy() |
| 369 | result.Name = "LeafR2"; result.Anchored = true; result.Parent = model |
| 370 | else |
| 371 | ball.Name = "LeafR2"; ball.Parent = model |
| 372 | end |
| 373 | else |
| 374 | ball.Name = "LeafR2"; ball.Parent = model |
| 375 | end |
| 376 | end |
| 377 | do |
| 378 | local upV = Vector3.new(0,1,0).Unit |
| 379 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 380 | local forwardV = rightV:Cross(upV) |
| 381 | local pos = Vector3.new(0, 6.5, -3) |
| 382 | local ball = Instance.new("Part") |
| 383 | ball.Shape = Enum.PartType.Ball |
| 384 | ball.Size = Vector3.new(4.4, 4.4, 4.4) |
| 385 | ball.CFrame = CFrame.new(pos) |
| 386 | ball.BrickColor = BrickColor.new("Dark green") |
| 387 | ball.Material = Enum.Material.Glacier |
| 388 | ball.MaterialVariant = "2022 Glue" |
| 389 | ball.Anchored = true; ball.Parent = workspace |
| 390 | local cuts = {} |
| 391 | if #cuts > 0 then |
| 392 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 393 | for _, c in ipairs(cuts) do c:Destroy() end |
| 394 | if ok and result then |
| 395 | ball:Destroy() |
| 396 | result.Name = "LeafF"; result.Anchored = true; result.Parent = model |
| 397 | else |
| 398 | ball.Name = "LeafF"; ball.Parent = model |
| 399 | end |
| 400 | else |
| 401 | ball.Name = "LeafF"; ball.Parent = model |
| 402 | end |
| 403 | end |
| 404 | do |
| 405 | local upV = Vector3.new(0,1,0).Unit |
| 406 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 407 | local forwardV = rightV:Cross(upV) |
| 408 | local pos = Vector3.new(0, 6.5, 3) |
| 409 | local ball = Instance.new("Part") |
| 410 | ball.Shape = Enum.PartType.Ball |
| 411 | ball.Size = Vector3.new(4.4, 4.4, 4.4) |
| 412 | ball.CFrame = CFrame.new(pos) |
| 413 | ball.BrickColor = BrickColor.new("Dark green") |
| 414 | ball.Material = Enum.Material.Glacier |
| 415 | ball.MaterialVariant = "2022 Glue" |
| 416 | ball.Anchored = true; ball.Parent = workspace |
| 417 | local cuts = {} |
| 418 | if #cuts > 0 then |
| 419 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 420 | for _, c in ipairs(cuts) do c:Destroy() end |
| 421 | if ok and result then |
| 422 | ball:Destroy() |
| 423 | result.Name = "LeafB"; result.Anchored = true; result.Parent = model |
| 424 | else |
| 425 | ball.Name = "LeafB"; ball.Parent = model |
| 426 | end |
| 427 | else |
| 428 | ball.Name = "LeafB"; ball.Parent = model |
| 429 | end |
| 430 | end |
| 431 | model.PrimaryPart = model:FindFirstChild("TrunkBase") |
| 432 | print("StylizedTree built: " .. #model:GetChildren() .. " parts") |
Loading comments...