i've tried this but it didnt work code:
1 | local players = game.Players:GetPlayers() |
2 | players:Kick( "Shutdown" ) |
You need to loop through all the players in a for loop
1 | local Players = game:GetService( "Players" ) ---- game.Players |
2 | for _,Player in pairs (Players:GetPlayers()) do --- looping through all the players |
3 | Player:Kick( "Shutdown" ) --- kicking them one by one in a for loop |
4 | end |