ALLOWED_ACCESS = {
[111111] = true,
[222222] = true,
[333333] = true,
}
function checkifallowed(userid)
for ids,allowed in pairs(ALLOWED_ACCESS) do
if ids == userid and allowed then
return true
else
return false
end
end
end
wait(2)
if checkifallowed(game.Players.LocalPlayer.UserId) then
ecc ecc
Take only the first result [1111111], and ignore the other one.. why?

7 comments
Still not work :/
is there any error's?
Now not work the first result too
Any errors... but i take only the print("You can't")
Any errors in the output?
SORRY I messed up i forgot to add "then" , try it now
How did this get 2 upvotes? It's just spoonfeeding code