Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

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

Asked by 10 years ago

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 :)

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. xImmortalChaos 565 — 10y

1 answer

Log in to vote
0
Answered by
Thetacah 712 Moderation Voter
10 years ago

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?

0
Oh wow, I never really thought of that! lol. Thank you! Tytanlore 15 — 10y
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. Tytanlore 15 — 10y
Ad

Answer this question