How would I have multiple usernames in a table, then check if a player with said username joins the game?
I made this, but it's not quite what I'm trying to make.
game.Players.PlayerAdded:connect(function(player)
if player.Name == "centuriontb" then
print(player.Name.." joined the game")
end
end)
I have no idea how I would make it work, I've checked the wiki but im still confused.
I tried doing this, but it doesn't work. anyway to fix this and make it work how I want?
local oof = {
"Player1",
"Player2"
}
game.Players.PlayerAdded:connect(function(player)
if player.Name == oof then
print(player.Name.." joined the game")
end
end)
To make any player in the table "oof" print in the console when they join the game. Please and thanks :D
