Get username from userid

Hey!

Is there a way to get a players username from their userid, if they aren’t in the game currently?

 game:GetService("Players"):GetPlayerByUserId(23313558)

Only works if a player is currently in the game.

Thanks.

1 Like
5 Likes

Awesome! Thank you, I was about to use the API endpoints for this, so I am super glad you helped out.

1 Like