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

How would I get the username of someone via their id?

Let's just say I have someone's UID (user id). How could I use that UID to get their username?

1 answer

✓ Accepted answer

Call game.Players:GetNameFromUserIdAsync() to do this. Remember, that since this is a remote call, it will yield and can error. This means that you need to wrap this invocation in a pcall() to ensure that it doesn't error, and never assume that it will be successful.

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