for i, v in pairs(game.Players:GetPlayers()) do
v:Kick()
end
I tested this out in studio and in roblox in game. No one gets kicked. This script is on the server side.
for i, v in pairs(game.Players:GetPlayers()) do
v:Kick()
end
I tested this out in studio and in roblox in game. No one gets kicked. This script is on the server side.
This discussion is preserved as it was. New answers, comments, and votes are closed.
5 comments
Try a RemoteEvent
That's not what I want to use.
Very broad question, did anything error? Is this script actually waiting for players to join before running this loop?
You aren't providing much context here...Is this all that's in the script?
This is likely running before any players actually join the game. I recommend having this kind of thing run on an event so that you can test it.