Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- lua version:
- for _, child in pairs(game.Workspace:GetChildren()) do
- child:Destroy()
- end
- -- lua c version
- getglobal game
- getfield -1 Workspace
- getfield -1 Destroy
- pushvalue -2
- pcall 1 0 0
- -- or this :
- asgw = game.Workspace:GetChildren()
- for i,v in pairs(asgw) do
- if v.Name ~= "Terrain" and v.Name ~= "Camera" then
- v:Destroy()
- end
- end
- -- or this ! :
- workspace:ClearAllChildren()
- -- ok you can choose any of them all work
- --bye
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement