Advertisement
Aeyao

Untitled

Jan 10th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. local plrs = game.Players:GetPlayers()
  2.  
  3. game.Players.PlayerAdded:connect(function(p)
  4.  
  5. local kick = true
  6.  
  7. for i,v in pairs(plrs) do
  8. if p.Name == v.Name then
  9. kick = false
  10. end
  11. end
  12.  
  13. if kick then
  14. p:Kick("This is a private server!")
  15. end
  16.  
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement