In my game, Alfa Labs 2, After a meltdown I want all players to be kicked and be shown a reason like the lab has been destroyed or something. How?
✓ ANSWER ACCEPTED
How to make the system kick all players?
1 answer
✓ Accepted answer
for x,d in pairs(game.Players:GetChildren()) do
d:Kick("booted")
end
Or simply:
game.Players:ClearAllChildren()
3 comments
0
GetPlayers() is better now it exists
0
dont use GetChildren() use children()
0
oh no
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
For every player call Kick. Kick is a function in Player objects. https://developer.roblox.com/api-reference/function/Player/Kick