I want to know how I can get a player’s ID by their nickname, even if they’re not on the game server.
you mean display name? if that is the case, then its impossible unless unique display names were required, you could maybe do it in game, but I doubt out game is possible.
No, I need a UserID. So that I can unban players using the Ban API. And I want to be able to get this ID only by using the UserName. Because Roblox allows you to use an existing Display Name
1 Like
thanks for clarifying username, in that case use GetUserIdFromNameAsync() https://create.roblox.com/docs/reference/engine/classes/Players#GetUserIdFromNameAsync
2 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.