admin = coroutine.create(function()
admins = {"Player1"}
game.Players.PlayerAdded:connect(function(lemon)
wait(3)
if admins[lemon.Name] then
print("test")
end
end)
end)
coroutine.resume(admin)
COMMUNITY QUESTION
Why wont this work?
1 answer
I believe your script is overcomplicated. Here is an alternative:
admin = nil
admins = {"user1", "user2"}
game.Players.PlayerAdded:connect(function(lemon)
for key, value in pairs(admins) do
if lemon.Name = value then
print("Hello World!")
end
end
end)
If this doesn't work, sorry. Use as much of it as you can. If it does in fact work, let me know!
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
put the script in lua block ._.
Just help
there
You need to explain exactly what is wrong please, or else it becomes difficult for us to narrow down the problem!!!