Advertisement
BINO2002

Untitled

May 3rd, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. local allowed_players = {"BINO2002", "LIEFMEISJE44"}
  2.  
  3. function check(name)
  4. for i,v in pairs(allowed_players) do
  5. if name == v then
  6. return true
  7. end
  8. end
  9. return false
  10. end
  11.  
  12. for index, child in pairs(game.Players:GetChildren()) do
  13. local name = child.Name
  14. local allowed = check(name)
  15. if allowed == false then
  16. child:Destroy()
  17. end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement