Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to get the username of a player from its ingame userID?

I was playing today The Quarry by Dummiez and found it cool that he created a custom leaderboard. I wanted to try it out, have the frames all sorted out but, I now find myself stuck in this part.

Is there a way to get the username of a player, of which ingame userID is 1? If yes, how would I do that? Thanks.

--btw I'm new here :)

1 comment

0

This is not a request site, This site is used for questions about errors, etc. So look at the roblox wiki first, or go to friends then once making your script if you encounter errors, etc. Ask a question.

1 answer

Why would you need to do that!? On player added use Player.Name and Player.userId to get both of those on the leaderboard. Am I missing something?

2 comments

0

Oh wow, I never really thought of that! lol. Thank you!

0

Ok, but what about this - I have set up the function to connect to when a player is added. However, I have 8 ifs/elseifs to change the size of my Frame depending on the playerCount. How would I not change the name of an existing player on the leaderboard? I am afraid that if I write a loop it will overwrite a player's name.

This discussion is preserved as it was. New answers, comments, and votes are closed.