Loading model...
by merri · 6/7/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: TreeBranch |
| 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 = "TreeBranch" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright green"] = "2022 Stud", |
| 25 | ["Reddish brown"] = "2022 Small Stud", |
| 26 | } |
| 27 | do |
| 28 | local p = Instance.new("Part") |
| 29 | p.Shape = Enum.PartType.Cylinder |
| 30 | p.Name = "Main1" |
| 31 | p.Size = Vector3.new(3.04138, 1.4, 1.4) |
| 32 | p.CFrame = CFrame.new(1.5, 0.25, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(9.46232)) |
| 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 = "Main2" |
| 43 | p.Size = Vector3.new(3, 1.2, 1.2) |
| 44 | p.CFrame = CFrame.new(4.5, 0.5, 0) |
| 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 = "Main3" |
| 55 | p.Size = Vector3.new(3.04138, 1, 1) |
| 56 | p.CFrame = CFrame.new(7.5, 0.25, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-9.46232)) |
| 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 = "Main4" |
| 67 | p.Size = Vector3.new(3.00666, 0.8, 0.8) |
| 68 | p.CFrame = CFrame.new(10.5, -0.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-3.81407)) |
| 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 = "Upper1" |
| 79 | p.Size = Vector3.new(2.83549, 0.7, 0.7) |
| 80 | p.CFrame = CFrame.new(7, 1.5, 0.1) * CFrame.Angles(math.rad(0), math.rad(-5.71059), math.rad(44.8575)) |
| 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 = "Upper2" |
| 91 | p.Size = Vector3.new(2.5, 0.5, 0.5) |
| 92 | p.CFrame = CFrame.new(8.75, 3.5, 0.2) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(53.1301)) |
| 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 = "Lower1" |
| 103 | p.Size = Vector3.new(2.50799, 0.6, 0.6) |
| 104 | p.CFrame = CFrame.new(10, -0.75, -0.1) * CFrame.Angles(math.rad(0), math.rad(5.71059), math.rad(-36.7332)) |
| 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 = "Lower2" |
| 115 | p.Size = Vector3.new(2.69258, 0.4, 0.4) |
| 116 | p.CFrame = CFrame.new(12.25, -2, -0.2) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-21.8014)) |
| 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 = "MidExt1" |
| 127 | p.Size = Vector3.new(2.59615, 0.6, 0.6) |
| 128 | p.CFrame = CFrame.new(13.25, 0.15, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(15.6422)) |
| 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("Part") |
| 137 | p.Shape = Enum.PartType.Cylinder |
| 138 | p.Name = "MidExt2" |
| 139 | p.Size = Vector3.new(2.24499, 0.22, 0.22) |
| 140 | p.CFrame = CFrame.new(15.5, 1, 0.1) * CFrame.Angles(math.rad(0), math.rad(-5.71059), math.rad(26.4512)) |
| 141 | p.BrickColor = BrickColor.new("Reddish brown") |
| 142 | p.Material = Enum.Material.Glacier |
| 143 | p.MaterialVariant = "2022 Small Stud" |
| 144 | p.Anchored = true |
| 145 | p.Parent = model |
| 146 | end |
| 147 | do |
| 148 | local p = Instance.new("Part") |
| 149 | p.Shape = Enum.PartType.Cylinder |
| 150 | p.Name = "MidExt3" |
| 151 | p.Size = Vector3.new(2.24499, 0.26, 0.26) |
| 152 | p.CFrame = CFrame.new(15.5, 0, -0.1) * CFrame.Angles(math.rad(0), math.rad(5.71059), math.rad(-26.4512)) |
| 153 | p.BrickColor = BrickColor.new("Reddish brown") |
| 154 | p.Material = Enum.Material.Glacier |
| 155 | p.MaterialVariant = "2022 Small Stud" |
| 156 | p.Anchored = true |
| 157 | p.Parent = model |
| 158 | end |
| 159 | do |
| 160 | local p = Instance.new("Part") |
| 161 | p.Name = "Leaf_TopLeft" |
| 162 | p.Size = Vector3.new(2, 1.2, 0.4) |
| 163 | p.CFrame = CFrame.new(8.5, 3.5, 0.6) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(60)) |
| 164 | p.BrickColor = BrickColor.new("Bright green") |
| 165 | p.Material = Enum.Material.Glacier |
| 166 | p.MaterialVariant = "2022 Stud" |
| 167 | p.Anchored = true |
| 168 | p.Parent = model |
| 169 | end |
| 170 | do |
| 171 | local p = Instance.new("Part") |
| 172 | p.Name = "LeafStem_TopLeft" |
| 173 | p.Size = Vector3.new(0.8, 0.2, 0.2) |
| 174 | p.CFrame = CFrame.new(7.7, 2.7, 0.32) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(60)) |
| 175 | p.BrickColor = BrickColor.new("Bright green") |
| 176 | p.Material = Enum.Material.Glacier |
| 177 | p.MaterialVariant = "2022 Stud" |
| 178 | p.Anchored = true |
| 179 | p.Parent = model |
| 180 | end |
| 181 | do |
| 182 | local p = Instance.new("Part") |
| 183 | p.Name = "Leaf_TopRight" |
| 184 | p.Size = Vector3.new(2, 1.2, 0.4) |
| 185 | p.CFrame = CFrame.new(10.5, 5.2, 0.6) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(45)) |
| 186 | p.BrickColor = BrickColor.new("Bright green") |
| 187 | p.Material = Enum.Material.Glacier |
| 188 | p.MaterialVariant = "2022 Stud" |
| 189 | p.Anchored = true |
| 190 | p.Parent = model |
| 191 | end |
| 192 | do |
| 193 | local p = Instance.new("Part") |
| 194 | p.Name = "LeafStem_TopRight" |
| 195 | p.Size = Vector3.new(0.8, 0.2, 0.2) |
| 196 | p.CFrame = CFrame.new(9.7, 4.4, 0.32) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(45)) |
| 197 | p.BrickColor = BrickColor.new("Bright green") |
| 198 | p.Material = Enum.Material.Glacier |
| 199 | p.MaterialVariant = "2022 Stud" |
| 200 | p.Anchored = true |
| 201 | p.Parent = model |
| 202 | end |
| 203 | do |
| 204 | local p = Instance.new("Part") |
| 205 | p.Name = "Leaf_MidRight" |
| 206 | p.Size = Vector3.new(2, 1.2, 0.4) |
| 207 | p.CFrame = CFrame.new(15.5, 1.5, 0.4) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(30)) |
| 208 | p.BrickColor = BrickColor.new("Bright green") |
| 209 | p.Material = Enum.Material.Glacier |
| 210 | p.MaterialVariant = "2022 Stud" |
| 211 | p.Anchored = true |
| 212 | p.Parent = model |
| 213 | end |
| 214 | do |
| 215 | local p = Instance.new("Part") |
| 216 | p.Name = "LeafStem_MidRight" |
| 217 | p.Size = Vector3.new(0.8, 0.2, 0.2) |
| 218 | p.CFrame = CFrame.new(14.7, 0.7, 0.4) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(30)) |
| 219 | p.BrickColor = BrickColor.new("Bright green") |
| 220 | p.Material = Enum.Material.Glacier |
| 221 | p.MaterialVariant = "2022 Stud" |
| 222 | p.Anchored = true |
| 223 | p.Parent = model |
| 224 | end |
| 225 | do |
| 226 | local p = Instance.new("Part") |
| 227 | p.Name = "Leaf_BottomRight" |
| 228 | p.Size = Vector3.new(2, 1.2, 0.4) |
| 229 | p.CFrame = CFrame.new(12.5, -2.5, 0.4) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-30)) |
| 230 | p.BrickColor = BrickColor.new("Bright green") |
| 231 | p.Material = Enum.Material.Glacier |
| 232 | p.MaterialVariant = "2022 Stud" |
| 233 | p.Anchored = true |
| 234 | p.Parent = model |
| 235 | end |
| 236 | do |
| 237 | local p = Instance.new("Part") |
| 238 | p.Name = "LeafStem_BottomRight" |
| 239 | p.Size = Vector3.new(0.8, 0.2, 0.2) |
| 240 | p.CFrame = CFrame.new(11.7, -3.3, 0.4) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-30)) |
| 241 | p.BrickColor = BrickColor.new("Bright green") |
| 242 | p.Material = Enum.Material.Glacier |
| 243 | p.MaterialVariant = "2022 Stud" |
| 244 | p.Anchored = true |
| 245 | p.Parent = model |
| 246 | end |
| 247 | model.PrimaryPart = model:FindFirstChild("Main1") |
| 248 | print("TreeBranch built: " .. #model:GetChildren() .. " parts") |
Loading comments...