I'm trying to check if a player exists in game.players with their username, how would I go about doing this?
Make a table of the list of people you want then loop through The below code should work.
game.Players.PlayerAdded:Connect(function(player) local tab = { "Player1"," Player2"} -- list of people you want for i,v in pairs(tab) do if player.Name == v then print ("player is in game") end end end)