i've tried this but it didnt work code:
local players = game.Players:GetPlayers()
players:Kick("Shutdown")
i've tried this but it didnt work code:
local players = game.Players:GetPlayers()
players:Kick("Shutdown")
You need to loop through all the players in a for loop
local Players = game:GetService("Players") ---- game.Players
for _,Player in pairs (Players:GetPlayers()) do --- looping through all the players
Player:Kick("Shutdown") --- kicking them one by one in a for loop
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Thanks!