Run it
Copy the script and paste it into your executor.
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)
.(()
_, obj (trees)
obj obj.Parent
obj:()
.()
)

Protect The House From Monsters