Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------Server Cleanup------
- local children = game.Workspace:GetChildren()
- for _, child in pairs(children) do
- for _, child in pairs(child:GetChildren()) do
- table.insert(children, child)
- end
- if child.ClassName ~= "Terrain" and child:IsA("BasePart") then
- child:Destroy()
- end
- end
- for i,v in pairs(Workspace:GetChildren()) do
- if v.Name == 'Terrain' then
- v:Clear()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement