I'm working on a ban script and I need to know how to do this so I can actually, get it to work.
COMMUNITY QUESTION
How could I check a player's name once they enter the game?
1 answer
This should work to initially find the player's name.
game.Players.PlayerAdded:connect(function(player)
print(player.Name)
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
Why not just player.Name?
Ah, that is true. player.Character.Name is mostly useful if you use admin commands which use nicknames, however that usually isn't an issue.
Kind of confusing on how to get it to check if it matches a name in the bannedlist table, I have, which is what I wanted.
That would require us doing all of the scripting, which is asking for a request, so this is Not Constructive.