Advertisement
ManFactorymaker

All - Player Kick [SERVER]

Apr 20th, 2022
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. local Players = game.Players:GetChildren()
  2. local KickMessage = "Kick Message"
  3. local PlayerNoKick = "Username that you don't want to kick otherwise: input this as nil "
  4.  
  5.  
  6. for _, player in ipairs(Players) do
  7.  
  8. if not(player.Name == PlayerNoKick) then
  9. player:Kick(KickMessage)
  10. end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement