01 | admin = coroutine.create( function () |
02 | admins = { "Player1" } |
03 | game.Players.PlayerAdded:connect( function (lemon) |
04 | wait( 3 ) |
05 | if admins [ lemon.Name ] then |
06 | print ( "test" ) |
07 | end |
08 | end ) |
09 | end ) |
10 | coroutine.resume(admin) |
I believe your script is overcomplicated. Here is an alternative:
01 | admin = nil |
02 | admins = { "user1" , "user2" } |
03 |
04 | game.Players.PlayerAdded:connect( function (lemon) |
05 | for key, value in pairs (admins) do |
06 | if lemon.Name = value then |
07 | print ( "Hello World!" ) |
08 | end |
09 |
10 | end |
11 | end ) |
If this doesn't work, sorry. Use as much of it as you can. If it does in fact work, let me know!