Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local allow = {"rockman5","Othernameshere","Othernameshere"}
- function CheckInTable(table,name)
- for i = 1,#table do
- if table[i] == name then return true end
- end
- return false
- end
- game.Players.PlayerAdded:connect(function(child)
- if not CheckInTable(allow,child.Name) then
- local m = Instance.new("Hint")
- m.Parent = game.Workspace
- m.Text = child.Name.." failed to enter!"
- wait()
- child:remove()
- wait(3)
- m:remove()
- end end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement