Loading model...
by poop king · 3/25/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: PalmTree |
| 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 = "PalmTree" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright green"] = "2022 Stud", |
| 25 | ["Daisy orange"] = "2022 Stud", |
| 26 | ["Dark green"] = "2022 Stud", |
| 27 | ["Nougat"] = "2022 Stud", |
| 28 | ["Reddish brown"] = "2022 Small Stud", |
| 29 | } |
| 30 | do |
| 31 | local p = Instance.new("Part") |
| 32 | p.Shape = Enum.PartType.Cylinder |
| 33 | p.Name = "BaseGrass1" |
| 34 | p.Size = Vector3.new(1, 6, 6) |
| 35 | p.CFrame = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 36 | p.BrickColor = BrickColor.new("Dark green") |
| 37 | p.Material = Enum.Material.Glacier |
| 38 | p.MaterialVariant = "2022 Stud" |
| 39 | p.Anchored = true |
| 40 | p.Parent = model |
| 41 | end |
| 42 | do |
| 43 | local p = Instance.new("Part") |
| 44 | p.Name = "BaseGrass2" |
| 45 | p.Size = Vector3.new(3, 1, 1) |
| 46 | p.CFrame = CFrame.new(2, 0.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(30)) |
| 47 | p.BrickColor = BrickColor.new("Dark green") |
| 48 | p.Material = Enum.Material.Glacier |
| 49 | p.MaterialVariant = "2022 Stud" |
| 50 | p.Anchored = true |
| 51 | p.Parent = model |
| 52 | end |
| 53 | do |
| 54 | local p = Instance.new("Part") |
| 55 | p.Name = "BaseGrass3" |
| 56 | p.Size = Vector3.new(3, 1, 1) |
| 57 | p.CFrame = CFrame.new(-2, 0.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-30)) |
| 58 | p.BrickColor = BrickColor.new("Dark green") |
| 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.Name = "BaseGrass4" |
| 67 | p.Size = Vector3.new(1, 1, 3) |
| 68 | p.CFrame = CFrame.new(0, 0.8, 2) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)) |
| 69 | p.BrickColor = BrickColor.new("Dark green") |
| 70 | p.Material = Enum.Material.Glacier |
| 71 | p.MaterialVariant = "2022 Stud" |
| 72 | p.Anchored = true |
| 73 | p.Parent = model |
| 74 | end |
| 75 | do |
| 76 | local p = Instance.new("Part") |
| 77 | p.Name = "BaseGrass5" |
| 78 | p.Size = Vector3.new(1, 1, 3) |
| 79 | p.CFrame = CFrame.new(0, 0.8, -2) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)) |
| 80 | p.BrickColor = BrickColor.new("Dark green") |
| 81 | p.Material = Enum.Material.Glacier |
| 82 | p.MaterialVariant = "2022 Stud" |
| 83 | p.Anchored = true |
| 84 | p.Parent = model |
| 85 | end |
| 86 | do |
| 87 | local p = Instance.new("Part") |
| 88 | p.Shape = Enum.PartType.Cylinder |
| 89 | p.Name = "Trunk_0" |
| 90 | p.Size = Vector3.new(2.5, 2.4, 2.4) |
| 91 | p.CFrame = CFrame.new(0, 2.29, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 92 | p.BrickColor = BrickColor.new("Daisy orange") |
| 93 | p.Material = Enum.Material.Glacier |
| 94 | p.MaterialVariant = "2022 Stud" |
| 95 | p.Anchored = true |
| 96 | p.Parent = model |
| 97 | end |
| 98 | do |
| 99 | local p = Instance.new("Part") |
| 100 | p.Shape = Enum.PartType.Cylinder |
| 101 | p.Name = "Ring_0" |
| 102 | p.Size = Vector3.new(0.2, 2.52, 2.52) |
| 103 | p.CFrame = CFrame.new(0, 3.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 104 | p.BrickColor = BrickColor.new("Reddish brown") |
| 105 | p.Material = Enum.Material.Glacier |
| 106 | p.MaterialVariant = "2022 Small Stud" |
| 107 | p.Anchored = true |
| 108 | p.Parent = model |
| 109 | end |
| 110 | do |
| 111 | local p = Instance.new("Part") |
| 112 | p.Shape = Enum.PartType.Cylinder |
| 113 | p.Name = "Trunk_1" |
| 114 | p.Size = Vector3.new(2.5, 2.28571, 2.28571) |
| 115 | p.CFrame = CFrame.new(0, 4.75, 0) * CFrame.Angles(math.rad(1.875), math.rad(0), math.rad(90)) |
| 116 | p.BrickColor = BrickColor.new("Daisy orange") |
| 117 | p.Material = Enum.Material.Glacier |
| 118 | p.MaterialVariant = "2022 Stud" |
| 119 | p.Anchored = true |
| 120 | p.Parent = model |
| 121 | end |
| 122 | do |
| 123 | local p = Instance.new("Part") |
| 124 | p.Shape = Enum.PartType.Cylinder |
| 125 | p.Name = "Ring_1" |
| 126 | p.Size = Vector3.new(0.2, 2.4, 2.4) |
| 127 | p.CFrame = CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(1.875), math.rad(0), math.rad(90)) |
| 128 | p.BrickColor = BrickColor.new("Reddish brown") |
| 129 | p.Material = Enum.Material.Glacier |
| 130 | p.MaterialVariant = "2022 Small Stud" |
| 131 | p.Anchored = true |
| 132 | p.Parent = model |
| 133 | end |
| 134 | do |
| 135 | local p = Instance.new("Part") |
| 136 | p.Shape = Enum.PartType.Cylinder |
| 137 | p.Name = "Trunk_2" |
| 138 | p.Size = Vector3.new(2.5, 2.17143, 2.17143) |
| 139 | p.CFrame = CFrame.new(0, 7.24866, 0.081798) * CFrame.Angles(math.rad(3.75), math.rad(0), math.rad(90)) |
| 140 | p.BrickColor = BrickColor.new("Daisy orange") |
| 141 | p.Material = Enum.Material.Glacier |
| 142 | p.MaterialVariant = "2022 Stud" |
| 143 | p.Anchored = true |
| 144 | p.Parent = model |
| 145 | end |
| 146 | do |
| 147 | local p = Instance.new("Part") |
| 148 | p.Shape = Enum.PartType.Cylinder |
| 149 | p.Name = "Ring_2" |
| 150 | p.Size = Vector3.new(0.2, 2.28, 2.28) |
| 151 | p.CFrame = CFrame.new(0, 8.49866, 0.081798) * CFrame.Angles(math.rad(3.75), math.rad(0), math.rad(90)) |
| 152 | p.BrickColor = BrickColor.new("Reddish brown") |
| 153 | p.Material = Enum.Material.Glacier |
| 154 | p.MaterialVariant = "2022 Small Stud" |
| 155 | p.Anchored = true |
| 156 | p.Parent = model |
| 157 | end |
| 158 | do |
| 159 | local p = Instance.new("Part") |
| 160 | p.Shape = Enum.PartType.Cylinder |
| 161 | p.Name = "Trunk_3" |
| 162 | p.Size = Vector3.new(2.5, 2.05714, 2.05714) |
| 163 | p.CFrame = CFrame.new(0, 9.74331, 0.245306) * CFrame.Angles(math.rad(5.625), math.rad(0), math.rad(90)) |
| 164 | p.BrickColor = BrickColor.new("Daisy orange") |
| 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.Shape = Enum.PartType.Cylinder |
| 173 | p.Name = "Ring_3" |
| 174 | p.Size = Vector3.new(0.2, 2.16, 2.16) |
| 175 | p.CFrame = CFrame.new(0, 10.9933, 0.245306) * CFrame.Angles(math.rad(5.625), math.rad(0), math.rad(90)) |
| 176 | p.BrickColor = BrickColor.new("Reddish brown") |
| 177 | p.Material = Enum.Material.Glacier |
| 178 | p.MaterialVariant = "2022 Small Stud" |
| 179 | p.Anchored = true |
| 180 | p.Parent = model |
| 181 | end |
| 182 | do |
| 183 | local p = Instance.new("Part") |
| 184 | p.Shape = Enum.PartType.Cylinder |
| 185 | p.Name = "Trunk_4" |
| 186 | p.Size = Vector3.new(2.5, 1.94286, 1.94286) |
| 187 | p.CFrame = CFrame.new(0, 12.2313, 0.490348) * CFrame.Angles(math.rad(7.5), math.rad(0), math.rad(90)) |
| 188 | p.BrickColor = BrickColor.new("Daisy orange") |
| 189 | p.Material = Enum.Material.Glacier |
| 190 | p.MaterialVariant = "2022 Stud" |
| 191 | p.Anchored = true |
| 192 | p.Parent = model |
| 193 | end |
| 194 | do |
| 195 | local p = Instance.new("Part") |
| 196 | p.Shape = Enum.PartType.Cylinder |
| 197 | p.Name = "Ring_4" |
| 198 | p.Size = Vector3.new(0.2, 2.04, 2.04) |
| 199 | p.CFrame = CFrame.new(0, 13.4813, 0.490348) * CFrame.Angles(math.rad(7.5), math.rad(0), math.rad(90)) |
| 200 | p.BrickColor = BrickColor.new("Reddish brown") |
| 201 | p.Material = Enum.Material.Glacier |
| 202 | p.MaterialVariant = "2022 Small Stud" |
| 203 | p.Anchored = true |
| 204 | p.Parent = model |
| 205 | end |
| 206 | do |
| 207 | local p = Instance.new("Part") |
| 208 | p.Shape = Enum.PartType.Cylinder |
| 209 | p.Name = "Trunk_5" |
| 210 | p.Size = Vector3.new(2.5, 1.82857, 1.82857) |
| 211 | p.CFrame = CFrame.new(0, 14.7099, 0.816664) * CFrame.Angles(math.rad(9.375), math.rad(0), math.rad(90)) |
| 212 | p.BrickColor = BrickColor.new("Daisy orange") |
| 213 | p.Material = Enum.Material.Glacier |
| 214 | p.MaterialVariant = "2022 Stud" |
| 215 | p.Anchored = true |
| 216 | p.Parent = model |
| 217 | end |
| 218 | do |
| 219 | local p = Instance.new("Part") |
| 220 | p.Shape = Enum.PartType.Cylinder |
| 221 | p.Name = "Ring_5" |
| 222 | p.Size = Vector3.new(0.2, 1.92, 1.92) |
| 223 | p.CFrame = CFrame.new(0, 15.9599, 0.816664) * CFrame.Angles(math.rad(9.375), math.rad(0), math.rad(90)) |
| 224 | p.BrickColor = BrickColor.new("Reddish brown") |
| 225 | p.Material = Enum.Material.Glacier |
| 226 | p.MaterialVariant = "2022 Small Stud" |
| 227 | p.Anchored = true |
| 228 | p.Parent = model |
| 229 | end |
| 230 | do |
| 231 | local p = Instance.new("Part") |
| 232 | p.Shape = Enum.PartType.Cylinder |
| 233 | p.Name = "Trunk_6" |
| 234 | p.Size = Vector3.new(2.5, 1.71429, 1.71429) |
| 235 | p.CFrame = CFrame.new(0, 17.1765, 1.2239) * CFrame.Angles(math.rad(11.25), math.rad(0), math.rad(90)) |
| 236 | p.BrickColor = BrickColor.new("Daisy orange") |
| 237 | p.Material = Enum.Material.Glacier |
| 238 | p.MaterialVariant = "2022 Stud" |
| 239 | p.Anchored = true |
| 240 | p.Parent = model |
| 241 | end |
| 242 | do |
| 243 | local p = Instance.new("Part") |
| 244 | p.Shape = Enum.PartType.Cylinder |
| 245 | p.Name = "Ring_6" |
| 246 | p.Size = Vector3.new(0.2, 1.8, 1.8) |
| 247 | p.CFrame = CFrame.new(0, 18.4265, 1.2239) * CFrame.Angles(math.rad(11.25), math.rad(0), math.rad(90)) |
| 248 | p.BrickColor = BrickColor.new("Reddish brown") |
| 249 | p.Material = Enum.Material.Glacier |
| 250 | p.MaterialVariant = "2022 Small Stud" |
| 251 | p.Anchored = true |
| 252 | p.Parent = model |
| 253 | end |
| 254 | do |
| 255 | local p = Instance.new("Part") |
| 256 | p.Shape = Enum.PartType.Cylinder |
| 257 | p.Name = "Trunk_7" |
| 258 | p.Size = Vector3.new(2.5, 1.6, 1.6) |
| 259 | p.CFrame = CFrame.new(0, 19.6285, 1.71163) * CFrame.Angles(math.rad(13.125), math.rad(0), math.rad(90)) |
| 260 | p.BrickColor = BrickColor.new("Daisy orange") |
| 261 | p.Material = Enum.Material.Glacier |
| 262 | p.MaterialVariant = "2022 Stud" |
| 263 | p.Anchored = true |
| 264 | p.Parent = model |
| 265 | end |
| 266 | do |
| 267 | local p = Instance.new("Part") |
| 268 | p.Shape = Enum.PartType.Ball |
| 269 | p.Name = "Coconut1" |
| 270 | p.Size = Vector3.new(2, 2, 2) |
| 271 | p.CFrame = CFrame.new(-0.8, 20.3131, 3.07932) |
| 272 | p.BrickColor = BrickColor.new("Nougat") |
| 273 | p.Material = Enum.Material.Glacier |
| 274 | p.MaterialVariant = "2022 Stud" |
| 275 | p.Anchored = true |
| 276 | p.Parent = model |
| 277 | end |
| 278 | do |
| 279 | local p = Instance.new("Part") |
| 280 | p.Shape = Enum.PartType.Ball |
| 281 | p.Name = "Coconut2" |
| 282 | p.Size = Vector3.new(1.8, 1.8, 1.8) |
| 283 | p.CFrame = CFrame.new(0.8, 20.0131, 2.77932) |
| 284 | p.BrickColor = BrickColor.new("Reddish brown") |
| 285 | p.Material = Enum.Material.Glacier |
| 286 | p.MaterialVariant = "2022 Small Stud" |
| 287 | p.Anchored = true |
| 288 | p.Parent = model |
| 289 | end |
| 290 | do |
| 291 | local p = Instance.new("Part") |
| 292 | p.Name = "Frond_0_0" |
| 293 | p.Size = Vector3.new(1, 0.5, 2.4) |
| 294 | p.CFrame = CFrame.new(1.6383, 21.9603, 2.27932) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-35)) |
| 295 | p.BrickColor = BrickColor.new("Bright green") |
| 296 | p.Material = Enum.Material.Glacier |
| 297 | p.MaterialVariant = "2022 Stud" |
| 298 | p.Anchored = true |
| 299 | p.Parent = model |
| 300 | end |
| 301 | do |
| 302 | local p = Instance.new("Part") |
| 303 | p.Name = "Frond_0_1" |
| 304 | p.Size = Vector3.new(1, 0.5, 2.4) |
| 305 | p.CFrame = CFrame.new(3.27661, 23.1075, 2.27932) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-35)) |
| 306 | p.BrickColor = BrickColor.new("Bright green") |
| 307 | p.Material = Enum.Material.Glacier |
| 308 | p.MaterialVariant = "2022 Stud" |
| 309 | p.Anchored = true |
| 310 | p.Parent = model |
| 311 | end |
| 312 | do |
| 313 | local p = Instance.new("Part") |
| 314 | p.Name = "Frond_0_2" |
| 315 | p.Size = Vector3.new(1, 0.5, 2.4) |
| 316 | p.CFrame = CFrame.new(4.91491, 24.2546, 2.27932) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-35)) |
| 317 | p.BrickColor = BrickColor.new("Bright green") |
| 318 | p.Material = Enum.Material.Glacier |
| 319 | p.MaterialVariant = "2022 Stud" |
| 320 | p.Anchored = true |
| 321 | p.Parent = model |
| 322 | end |
| 323 | do |
| 324 | local p = Instance.new("Part") |
| 325 | p.Name = "Frond_1_0" |
| 326 | p.Size = Vector3.new(1, 0.5, 2.4) |
| 327 | p.CFrame = CFrame.new(0.939693, 21.4972, 3.90691) * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(-20)) |
| 328 | p.BrickColor = BrickColor.new("Bright green") |
| 329 | p.Material = Enum.Material.Glacier |
| 330 | p.MaterialVariant = "2022 Stud" |
| 331 | p.Anchored = true |
| 332 | p.Parent = model |
| 333 | end |
| 334 | do |
| 335 | local p = Instance.new("Part") |
| 336 | p.Name = "Frond_1_1" |
| 337 | p.Size = Vector3.new(1, 0.5, 2.4) |
| 338 | p.CFrame = CFrame.new(1.87939, 22.1812, 5.53451) * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(-20)) |
| 339 | p.BrickColor = BrickColor.new("Bright green") |
| 340 | p.Material = Enum.Material.Glacier |
| 341 | p.MaterialVariant = "2022 Stud" |
| 342 | p.Anchored = true |
| 343 | p.Parent = model |
| 344 | end |
| 345 | do |
| 346 | local p = Instance.new("Part") |
| 347 | p.Name = "Frond_1_2" |
| 348 | p.Size = Vector3.new(1, 0.5, 2.4) |
| 349 | p.CFrame = CFrame.new(2.81908, 22.8653, 7.16211) * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(-20)) |
| 350 | p.BrickColor = BrickColor.new("Bright green") |
| 351 | p.Material = Enum.Material.Glacier |
| 352 | p.MaterialVariant = "2022 Stud" |
| 353 | p.Anchored = true |
| 354 | p.Parent = model |
| 355 | end |
| 356 | do |
| 357 | local p = Instance.new("Part") |
| 358 | p.Name = "Frond_2_0" |
| 359 | p.Size = Vector3.new(1, 0.5, 2.4) |
| 360 | p.CFrame = CFrame.new(-0.819152, 21.9603, 3.69813) * CFrame.Angles(math.rad(0), math.rad(-120), math.rad(-35)) |
| 361 | p.BrickColor = BrickColor.new("Bright green") |
| 362 | p.Material = Enum.Material.Glacier |
| 363 | p.MaterialVariant = "2022 Stud" |
| 364 | p.Anchored = true |
| 365 | p.Parent = model |
| 366 | end |
| 367 | do |
| 368 | local p = Instance.new("Part") |
| 369 | p.Name = "Frond_2_1" |
| 370 | p.Size = Vector3.new(1, 0.5, 2.4) |
| 371 | p.CFrame = CFrame.new(-1.6383, 23.1075, 5.11695) * CFrame.Angles(math.rad(0), math.rad(-120), math.rad(-35)) |
| 372 | p.BrickColor = BrickColor.new("Bright green") |
| 373 | p.Material = Enum.Material.Glacier |
| 374 | p.MaterialVariant = "2022 Stud" |
| 375 | p.Anchored = true |
| 376 | p.Parent = model |
| 377 | end |
| 378 | do |
| 379 | local p = Instance.new("Part") |
| 380 | p.Name = "Frond_2_2" |
| 381 | p.Size = Vector3.new(1, 0.5, 2.4) |
| 382 | p.CFrame = CFrame.new(-2.45746, 24.2546, 6.53576) * CFrame.Angles(math.rad(0), math.rad(-120), math.rad(-35)) |
| 383 | p.BrickColor = BrickColor.new("Bright green") |
| 384 | p.Material = Enum.Material.Glacier |
| 385 | p.MaterialVariant = "2022 Stud" |
| 386 | p.Anchored = true |
| 387 | p.Parent = model |
| 388 | end |
| 389 | do |
| 390 | local p = Instance.new("Part") |
| 391 | p.Name = "Frond_3_0" |
| 392 | p.Size = Vector3.new(1, 0.5, 2.4) |
| 393 | p.CFrame = CFrame.new(-1.87939, 21.4972, 2.27932) * CFrame.Angles(math.rad(0), math.rad(-180), math.rad(-20)) |
| 394 | p.BrickColor = BrickColor.new("Bright green") |
| 395 | p.Material = Enum.Material.Glacier |
| 396 | p.MaterialVariant = "2022 Stud" |
| 397 | p.Anchored = true |
| 398 | p.Parent = model |
| 399 | end |
| 400 | do |
| 401 | local p = Instance.new("Part") |
| 402 | p.Name = "Frond_3_1" |
| 403 | p.Size = Vector3.new(1, 0.5, 2.4) |
| 404 | p.CFrame = CFrame.new(-3.75877, 22.1812, 2.27932) * CFrame.Angles(math.rad(0), math.rad(-180), math.rad(-20)) |
| 405 | p.BrickColor = BrickColor.new("Bright green") |
| 406 | p.Material = Enum.Material.Glacier |
| 407 | p.MaterialVariant = "2022 Stud" |
| 408 | p.Anchored = true |
| 409 | p.Parent = model |
| 410 | end |
| 411 | do |
| 412 | local p = Instance.new("Part") |
| 413 | p.Name = "Frond_3_2" |
| 414 | p.Size = Vector3.new(1, 0.5, 2.4) |
| 415 | p.CFrame = CFrame.new(-5.63816, 22.8653, 2.27932) * CFrame.Angles(math.rad(0), math.rad(-180), math.rad(-20)) |
| 416 | p.BrickColor = BrickColor.new("Bright green") |
| 417 | p.Material = Enum.Material.Glacier |
| 418 | p.MaterialVariant = "2022 Stud" |
| 419 | p.Anchored = true |
| 420 | p.Parent = model |
| 421 | end |
| 422 | do |
| 423 | local p = Instance.new("Part") |
| 424 | p.Name = "Frond_4_0" |
| 425 | p.Size = Vector3.new(1, 0.5, 2.4) |
| 426 | p.CFrame = CFrame.new(-0.819152, 21.9603, 0.860506) * CFrame.Angles(math.rad(0), math.rad(-240), math.rad(-35)) |
| 427 | p.BrickColor = BrickColor.new("Bright green") |
| 428 | p.Material = Enum.Material.Glacier |
| 429 | p.MaterialVariant = "2022 Stud" |
| 430 | p.Anchored = true |
| 431 | p.Parent = model |
| 432 | end |
| 433 | do |
| 434 | local p = Instance.new("Part") |
| 435 | p.Name = "Frond_4_1" |
| 436 | p.Size = Vector3.new(1, 0.5, 2.4) |
| 437 | p.CFrame = CFrame.new(-1.6383, 23.1075, -0.558307) * CFrame.Angles(math.rad(0), math.rad(-240), math.rad(-35)) |
| 438 | p.BrickColor = BrickColor.new("Bright green") |
| 439 | p.Material = Enum.Material.Glacier |
| 440 | p.MaterialVariant = "2022 Stud" |
| 441 | p.Anchored = true |
| 442 | p.Parent = model |
| 443 | end |
| 444 | do |
| 445 | local p = Instance.new("Part") |
| 446 | p.Name = "Frond_4_2" |
| 447 | p.Size = Vector3.new(1, 0.5, 2.4) |
| 448 | p.CFrame = CFrame.new(-2.45746, 24.2546, -1.97712) * CFrame.Angles(math.rad(0), math.rad(-240), math.rad(-35)) |
| 449 | p.BrickColor = BrickColor.new("Bright green") |
| 450 | p.Material = Enum.Material.Glacier |
| 451 | p.MaterialVariant = "2022 Stud" |
| 452 | p.Anchored = true |
| 453 | p.Parent = model |
| 454 | end |
| 455 | do |
| 456 | local p = Instance.new("Part") |
| 457 | p.Name = "Frond_5_0" |
| 458 | p.Size = Vector3.new(1, 0.5, 2.4) |
| 459 | p.CFrame = CFrame.new(0.939693, 21.4972, 0.651724) * CFrame.Angles(math.rad(0), math.rad(-300), math.rad(-20)) |
| 460 | p.BrickColor = BrickColor.new("Bright green") |
| 461 | p.Material = Enum.Material.Glacier |
| 462 | p.MaterialVariant = "2022 Stud" |
| 463 | p.Anchored = true |
| 464 | p.Parent = model |
| 465 | end |
| 466 | do |
| 467 | local p = Instance.new("Part") |
| 468 | p.Name = "Frond_5_1" |
| 469 | p.Size = Vector3.new(1, 0.5, 2.4) |
| 470 | p.CFrame = CFrame.new(1.87939, 22.1812, -0.975872) * CFrame.Angles(math.rad(0), math.rad(-300), math.rad(-20)) |
| 471 | p.BrickColor = BrickColor.new("Bright green") |
| 472 | p.Material = Enum.Material.Glacier |
| 473 | p.MaterialVariant = "2022 Stud" |
| 474 | p.Anchored = true |
| 475 | p.Parent = model |
| 476 | end |
| 477 | do |
| 478 | local p = Instance.new("Part") |
| 479 | p.Name = "Frond_5_2" |
| 480 | p.Size = Vector3.new(1, 0.5, 2.4) |
| 481 | p.CFrame = CFrame.new(2.81908, 22.8653, -2.60347) * CFrame.Angles(math.rad(0), math.rad(-300), math.rad(-20)) |
| 482 | p.BrickColor = BrickColor.new("Bright green") |
| 483 | p.Material = Enum.Material.Glacier |
| 484 | p.MaterialVariant = "2022 Stud" |
| 485 | p.Anchored = true |
| 486 | p.Parent = model |
| 487 | end |
| 488 | do |
| 489 | local rightV = Vector3.new(1,-0.573576,0).Unit |
| 490 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 491 | local normalV = upV:Cross(rightV) |
| 492 | local pos = Vector3.new(0, 20.8131, 2.27932) |
| 493 | local cyl = Instance.new("Part") |
| 494 | cyl.Shape = Enum.PartType.Cylinder |
| 495 | cyl.Size = Vector3.new(0.4, 16, 16) |
| 496 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 497 | cyl.BrickColor = BrickColor.new("Bright green") |
| 498 | cyl.Material = Enum.Material.Glacier |
| 499 | cyl.MaterialVariant = "2022 Stud" |
| 500 | cyl.Anchored = true; cyl.Parent = workspace |
| 501 | local cuts = {} |
| 502 | local angBoxes = {} |
| 503 | do |
| 504 | local edgeDir = 1*rightV + 0*upV |
| 505 | local edgePerp = 0*rightV + 1*upV |
| 506 | local cut = Instance.new("Part") |
| 507 | cut.Size = Vector3.new(32, 0.6, 32) |
| 508 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 16 * edgePerp, edgeDir, normalV) |
| 509 | cut.BrickColor = BrickColor.new("Bright green") |
| 510 | cut.Material = Enum.Material.Glacier |
| 511 | cut.MaterialVariant = "2022 Stud" |
| 512 | cut.Anchored = true; cut.Parent = workspace |
| 513 | table.insert(angBoxes, cut) |
| 514 | end |
| 515 | do |
| 516 | local edgeDir = 0.5*rightV + 0.866025*upV |
| 517 | local edgePerp = -0.866025*rightV + 0.5*upV |
| 518 | local cut = Instance.new("Part") |
| 519 | cut.Size = Vector3.new(32, 0.6, 32) |
| 520 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 16 * edgePerp, edgeDir, normalV) |
| 521 | cut.BrickColor = BrickColor.new("Bright green") |
| 522 | cut.Material = Enum.Material.Glacier |
| 523 | cut.MaterialVariant = "2022 Stud" |
| 524 | cut.Anchored = true; cut.Parent = workspace |
| 525 | table.insert(angBoxes, cut) |
| 526 | end |
| 527 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 528 | if #cuts > 0 then |
| 529 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 530 | for _, c in ipairs(cuts) do c:Destroy() end |
| 531 | if ok and result then |
| 532 | cyl:Destroy() |
| 533 | result.Name = "Leaf_0"; result.Anchored = true; result.Parent = model |
| 534 | else |
| 535 | cyl.Name = "Leaf_0"; cyl.Parent = model |
| 536 | end |
| 537 | else |
| 538 | cyl.Name = "Leaf_0"; cyl.Parent = model |
| 539 | end |
| 540 | end |
| 541 | do |
| 542 | local rightV = Vector3.new(0.5,-0.34202,0.866025).Unit |
| 543 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 544 | local normalV = upV:Cross(rightV) |
| 545 | local pos = Vector3.new(0, 20.8131, 2.27932) |
| 546 | local cyl = Instance.new("Part") |
| 547 | cyl.Shape = Enum.PartType.Cylinder |
| 548 | cyl.Size = Vector3.new(0.4, 16, 16) |
| 549 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 550 | cyl.BrickColor = BrickColor.new("Bright green") |
| 551 | cyl.Material = Enum.Material.Glacier |
| 552 | cyl.MaterialVariant = "2022 Stud" |
| 553 | cyl.Anchored = true; cyl.Parent = workspace |
| 554 | local cuts = {} |
| 555 | local angBoxes = {} |
| 556 | do |
| 557 | local edgeDir = 1*rightV + 0*upV |
| 558 | local edgePerp = 0*rightV + 1*upV |
| 559 | local cut = Instance.new("Part") |
| 560 | cut.Size = Vector3.new(32, 0.6, 32) |
| 561 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 16 * edgePerp, edgeDir, normalV) |
| 562 | cut.BrickColor = BrickColor.new("Bright green") |
| 563 | cut.Material = Enum.Material.Glacier |
| 564 | cut.MaterialVariant = "2022 Stud" |
| 565 | cut.Anchored = true; cut.Parent = workspace |
| 566 | table.insert(angBoxes, cut) |
| 567 | end |
| 568 | do |
| 569 | local edgeDir = 0.5*rightV + 0.866025*upV |
| 570 | local edgePerp = -0.866025*rightV + 0.5*upV |
| 571 | local cut = Instance.new("Part") |
| 572 | cut.Size = Vector3.new(32, 0.6, 32) |
| 573 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 16 * edgePerp, edgeDir, normalV) |
| 574 | cut.BrickColor = BrickColor.new("Bright green") |
| 575 | cut.Material = Enum.Material.Glacier |
| 576 | cut.MaterialVariant = "2022 Stud" |
| 577 | cut.Anchored = true; cut.Parent = workspace |
| 578 | table.insert(angBoxes, cut) |
| 579 | end |
| 580 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 581 | if #cuts > 0 then |
| 582 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 583 | for _, c in ipairs(cuts) do c:Destroy() end |
| 584 | if ok and result then |
| 585 | cyl:Destroy() |
| 586 | result.Name = "Leaf_1"; result.Anchored = true; result.Parent = model |
| 587 | else |
| 588 | cyl.Name = "Leaf_1"; cyl.Parent = model |
| 589 | end |
| 590 | else |
| 591 | cyl.Name = "Leaf_1"; cyl.Parent = model |
| 592 | end |
| 593 | end |
| 594 | do |
| 595 | local rightV = Vector3.new(-0.5,-0.573576,0.866025).Unit |
| 596 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 597 | local normalV = upV:Cross(rightV) |
| 598 | local pos = Vector3.new(0, 20.8131, 2.27932) |
| 599 | local cyl = Instance.new("Part") |
| 600 | cyl.Shape = Enum.PartType.Cylinder |
| 601 | cyl.Size = Vector3.new(0.4, 16, 16) |
| 602 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 603 | cyl.BrickColor = BrickColor.new("Bright green") |
| 604 | cyl.Material = Enum.Material.Glacier |
| 605 | cyl.MaterialVariant = "2022 Stud" |
| 606 | cyl.Anchored = true; cyl.Parent = workspace |
| 607 | local cuts = {} |
| 608 | local angBoxes = {} |
| 609 | do |
| 610 | local edgeDir = 1*rightV + 0*upV |
| 611 | local edgePerp = 0*rightV + 1*upV |
| 612 | local cut = Instance.new("Part") |
| 613 | cut.Size = Vector3.new(32, 0.6, 32) |
| 614 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 16 * edgePerp, edgeDir, normalV) |
| 615 | cut.BrickColor = BrickColor.new("Bright green") |
| 616 | cut.Material = Enum.Material.Glacier |
| 617 | cut.MaterialVariant = "2022 Stud" |
| 618 | cut.Anchored = true; cut.Parent = workspace |
| 619 | table.insert(angBoxes, cut) |
| 620 | end |
| 621 | do |
| 622 | local edgeDir = 0.5*rightV + 0.866025*upV |
| 623 | local edgePerp = -0.866025*rightV + 0.5*upV |
| 624 | local cut = Instance.new("Part") |
| 625 | cut.Size = Vector3.new(32, 0.6, 32) |
| 626 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 16 * edgePerp, edgeDir, normalV) |
| 627 | cut.BrickColor = BrickColor.new("Bright green") |
| 628 | cut.Material = Enum.Material.Glacier |
| 629 | cut.MaterialVariant = "2022 Stud" |
| 630 | cut.Anchored = true; cut.Parent = workspace |
| 631 | table.insert(angBoxes, cut) |
| 632 | end |
| 633 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 634 | if #cuts > 0 then |
| 635 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 636 | for _, c in ipairs(cuts) do c:Destroy() end |
| 637 | if ok and result then |
| 638 | cyl:Destroy() |
| 639 | result.Name = "Leaf_2"; result.Anchored = true; result.Parent = model |
| 640 | else |
| 641 | cyl.Name = "Leaf_2"; cyl.Parent = model |
| 642 | end |
| 643 | else |
| 644 | cyl.Name = "Leaf_2"; cyl.Parent = model |
| 645 | end |
| 646 | end |
| 647 | do |
| 648 | local rightV = Vector3.new(-1,-0.34202,0).Unit |
| 649 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 650 | local normalV = upV:Cross(rightV) |
| 651 | local pos = Vector3.new(0, 20.8131, 2.27932) |
| 652 | local cyl = Instance.new("Part") |
| 653 | cyl.Shape = Enum.PartType.Cylinder |
| 654 | cyl.Size = Vector3.new(0.4, 16, 16) |
| 655 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 656 | cyl.BrickColor = BrickColor.new("Bright green") |
| 657 | cyl.Material = Enum.Material.Glacier |
| 658 | cyl.MaterialVariant = "2022 Stud" |
| 659 | cyl.Anchored = true; cyl.Parent = workspace |
| 660 | local cuts = {} |
| 661 | local angBoxes = {} |
| 662 | do |
| 663 | local edgeDir = 1*rightV + 0*upV |
| 664 | local edgePerp = 0*rightV + 1*upV |
| 665 | local cut = Instance.new("Part") |
| 666 | cut.Size = Vector3.new(32, 0.6, 32) |
| 667 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 16 * edgePerp, edgeDir, normalV) |
| 668 | cut.BrickColor = BrickColor.new("Bright green") |
| 669 | cut.Material = Enum.Material.Glacier |
| 670 | cut.MaterialVariant = "2022 Stud" |
| 671 | cut.Anchored = true; cut.Parent = workspace |
| 672 | table.insert(angBoxes, cut) |
| 673 | end |
| 674 | do |
| 675 | local edgeDir = 0.5*rightV + 0.866025*upV |
| 676 | local edgePerp = -0.866025*rightV + 0.5*upV |
| 677 | local cut = Instance.new("Part") |
| 678 | cut.Size = Vector3.new(32, 0.6, 32) |
| 679 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 16 * edgePerp, edgeDir, normalV) |
| 680 | cut.BrickColor = BrickColor.new("Bright green") |
| 681 | cut.Material = Enum.Material.Glacier |
| 682 | cut.MaterialVariant = "2022 Stud" |
| 683 | cut.Anchored = true; cut.Parent = workspace |
| 684 | table.insert(angBoxes, cut) |
| 685 | end |
| 686 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 687 | if #cuts > 0 then |
| 688 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 689 | for _, c in ipairs(cuts) do c:Destroy() end |
| 690 | if ok and result then |
| 691 | cyl:Destroy() |
| 692 | result.Name = "Leaf_3"; result.Anchored = true; result.Parent = model |
| 693 | else |
| 694 | cyl.Name = "Leaf_3"; cyl.Parent = model |
| 695 | end |
| 696 | else |
| 697 | cyl.Name = "Leaf_3"; cyl.Parent = model |
| 698 | end |
| 699 | end |
| 700 | do |
| 701 | local rightV = Vector3.new(-0.5,-0.573576,-0.866025).Unit |
| 702 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 703 | local normalV = upV:Cross(rightV) |
| 704 | local pos = Vector3.new(0, 20.8131, 2.27932) |
| 705 | local cyl = Instance.new("Part") |
| 706 | cyl.Shape = Enum.PartType.Cylinder |
| 707 | cyl.Size = Vector3.new(0.4, 16, 16) |
| 708 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 709 | cyl.BrickColor = BrickColor.new("Bright green") |
| 710 | cyl.Material = Enum.Material.Glacier |
| 711 | cyl.MaterialVariant = "2022 Stud" |
| 712 | cyl.Anchored = true; cyl.Parent = workspace |
| 713 | local cuts = {} |
| 714 | local angBoxes = {} |
| 715 | do |
| 716 | local edgeDir = 1*rightV + 0*upV |
| 717 | local edgePerp = 0*rightV + 1*upV |
| 718 | local cut = Instance.new("Part") |
| 719 | cut.Size = Vector3.new(32, 0.6, 32) |
| 720 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 16 * edgePerp, edgeDir, normalV) |
| 721 | cut.BrickColor = BrickColor.new("Bright green") |
| 722 | cut.Material = Enum.Material.Glacier |
| 723 | cut.MaterialVariant = "2022 Stud" |
| 724 | cut.Anchored = true; cut.Parent = workspace |
| 725 | table.insert(angBoxes, cut) |
| 726 | end |
| 727 | do |
| 728 | local edgeDir = 0.5*rightV + 0.866025*upV |
| 729 | local edgePerp = -0.866025*rightV + 0.5*upV |
| 730 | local cut = Instance.new("Part") |
| 731 | cut.Size = Vector3.new(32, 0.6, 32) |
| 732 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 16 * edgePerp, edgeDir, normalV) |
| 733 | cut.BrickColor = BrickColor.new("Bright green") |
| 734 | cut.Material = Enum.Material.Glacier |
| 735 | cut.MaterialVariant = "2022 Stud" |
| 736 | cut.Anchored = true; cut.Parent = workspace |
| 737 | table.insert(angBoxes, cut) |
| 738 | end |
| 739 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 740 | if #cuts > 0 then |
| 741 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 742 | for _, c in ipairs(cuts) do c:Destroy() end |
| 743 | if ok and result then |
| 744 | cyl:Destroy() |
| 745 | result.Name = "Leaf_4"; result.Anchored = true; result.Parent = model |
| 746 | else |
| 747 | cyl.Name = "Leaf_4"; cyl.Parent = model |
| 748 | end |
| 749 | else |
| 750 | cyl.Name = "Leaf_4"; cyl.Parent = model |
| 751 | end |
| 752 | end |
| 753 | do |
| 754 | local rightV = Vector3.new(0.5,-0.34202,-0.866025).Unit |
| 755 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 756 | local normalV = upV:Cross(rightV) |
| 757 | local pos = Vector3.new(0, 20.8131, 2.27932) |
| 758 | local cyl = Instance.new("Part") |
| 759 | cyl.Shape = Enum.PartType.Cylinder |
| 760 | cyl.Size = Vector3.new(0.4, 16, 16) |
| 761 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 762 | cyl.BrickColor = BrickColor.new("Bright green") |
| 763 | cyl.Material = Enum.Material.Glacier |
| 764 | cyl.MaterialVariant = "2022 Stud" |
| 765 | cyl.Anchored = true; cyl.Parent = workspace |
| 766 | local cuts = {} |
| 767 | local angBoxes = {} |
| 768 | do |
| 769 | local edgeDir = 1*rightV + 0*upV |
| 770 | local edgePerp = 0*rightV + 1*upV |
| 771 | local cut = Instance.new("Part") |
| 772 | cut.Size = Vector3.new(32, 0.6, 32) |
| 773 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 16 * edgePerp, edgeDir, normalV) |
| 774 | cut.BrickColor = BrickColor.new("Bright green") |
| 775 | cut.Material = Enum.Material.Glacier |
| 776 | cut.MaterialVariant = "2022 Stud" |
| 777 | cut.Anchored = true; cut.Parent = workspace |
| 778 | table.insert(angBoxes, cut) |
| 779 | end |
| 780 | do |
| 781 | local edgeDir = 0.5*rightV + 0.866025*upV |
| 782 | local edgePerp = -0.866025*rightV + 0.5*upV |
| 783 | local cut = Instance.new("Part") |
| 784 | cut.Size = Vector3.new(32, 0.6, 32) |
| 785 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 16 * edgePerp, edgeDir, normalV) |
| 786 | cut.BrickColor = BrickColor.new("Bright green") |
| 787 | cut.Material = Enum.Material.Glacier |
| 788 | cut.MaterialVariant = "2022 Stud" |
| 789 | cut.Anchored = true; cut.Parent = workspace |
| 790 | table.insert(angBoxes, cut) |
| 791 | end |
| 792 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 793 | if #cuts > 0 then |
| 794 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 795 | for _, c in ipairs(cuts) do c:Destroy() end |
| 796 | if ok and result then |
| 797 | cyl:Destroy() |
| 798 | result.Name = "Leaf_5"; result.Anchored = true; result.Parent = model |
| 799 | else |
| 800 | cyl.Name = "Leaf_5"; cyl.Parent = model |
| 801 | end |
| 802 | else |
| 803 | cyl.Name = "Leaf_5"; cyl.Parent = model |
| 804 | end |
| 805 | end |
| 806 | model.PrimaryPart = model:FindFirstChild("Trunk_0") |
| 807 | print("PalmTree built: " .. #model:GetChildren() .. " parts") |
Loading comments...