View difference between Paste ID: 66in0KaP and K0Ku5eix
SHOW: | | - or go back to the newest paste.
1-
local allow = {"rockman5","Othernameshere","Othernameshere"}
1+
local allow = {"guy","loomineh","Lundo_Fett"}
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)