Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. local allow = {"chunkmanc3","ItsJustWolf","Othernameshere"}
  2.  
  3. function CheckInTable(table,name)
  4. for i = 1,#table do
  5. if table[i] == name then return true end
  6. end
  7. return false
  8. end
  9.  
  10. game.Players.PlayerAdded:connect(function(child)
  11. if not CheckInTable(allow,child.Name) then
  12. local m = Instance.new("Hint")
  13. m.Parent = game.Workspace
  14. m.Text = child.Name.." failed to enter!"
  15. wait()
  16. child:remove()
  17. wait(3)
  18. m:remove()
  19. end end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement