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)
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!