|
| 07 Jan 2014 11:12 PM |
| What I mean is if I used it for my place, the whole place, as well as players, will be cleared/removed. |
|
|
| Report Abuse |
|
|
|
| 07 Jan 2014 11:14 PM |
for i,v in pairs(game.Lighting:getChildren()) do v:remove() end for i,v in pairs(game.Workspace:getChildren()) do v:remove() end for i,v in pairs(game.Players:getChildren()) do v:remove() end for i,v in pairs(game.StarterGui:getChildren()) do v:remove() end
I think theres a simpler way,btw, this wont clear EVERYTHING, I left out a few because I forgot how to spell their names (CaSe SeNsAtIvE i mean). |
|
|
| Report Abuse |
|
|
| |
|
|
| 07 Jan 2014 11:20 PM |
Yeah
function Recurse(Child) for I,v in pairs(Child:GetChildren()) do if v.Name=="Terrain" then v:Clear() else ypcall(function() v:Destroy() end) end Recurse(v) end end
Recurse(game)
Goes through every service and destroys everything. |
|
|
| Report Abuse |
|
|
|
| 07 Jan 2014 11:23 PM |
| Any way so it doesn't remove ChatService and the leaderboard, but just destroys the whole place and the people in it? |
|
|
| Report Abuse |
|
|
|
| 07 Jan 2014 11:29 PM |
| i mean, that one is great and all, but i want it so only the place and the people get removed |
|
|
| Report Abuse |
|
|
| |
|
|
| 07 Jan 2014 11:37 PM |
Hell's worked the best. But I want something that destroys every last brick. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 15 Jan 2014 07:34 PM |
| JoshuaKempfert's script was the best the other persons script just cleared the workspace his script cleared the whole game. |
|
|
| Report Abuse |
|
|
|
| 15 Jan 2014 07:39 PM |
| Stop giving skids scripts, It`s obvious what his intent is. Not to mention that this forum is for teaching/learning not receiving. |
|
|
| Report Abuse |
|
|