
Key Required

local trees = {}
local function scan(parent)
for _, obj in ipairs(parent:GetChildren()) do
if string.find(obj.Name:lower(), "tree") then
table.insert(trees, obj)
else
local found = false
for _, child in ipairs(obj:GetChildren()) do
if string.find(child.Name:lower(), "tree") then
found = true
break
end
end
if found then
table.insert(trees, obj)
else
scan(obj)
end
end
end
end
scan(workspace)
task.spawn(function()
for _, obj in ipairs(trees) do
if obj and obj.Parent then
obj:Destroy()
end
task.wait(0.5)
end
end)
-- 09 01 25
-- JAI



nice
what is even the use of removing trees?