the code is
while true do if game.Players.NumPlayers == ("1") then game.Players:ClearAllChildren() end end
After it crashes my studio ( after I put in test mode ) Any other script I put in Crashes it to (in test mode ) IT crashes it and allows no other script there, any help on the reason why it does this?
(P.S, I can re-load Roblox Studio and its the same problem with any script in test mode... )
You need to put a wait()
in there, otherwise it runs the code so fast it crashes. Put it right under the while true do
.