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

Is there anyway to get a player's name from their user Id if they are not in the server?

At the moment I have attempted to use:

local playerName = game.Players:GetPlayerByUserId(19497313)

which works just fine, as long as the player is in the server.

Is there a way that I can get the player's name from their user Id, without them being in the server?

1 answer

print(game.Players:GetNameFromUserIdAsync(19497313))

2 comments

0

Thank you, but is there a way to use functions such as 'IsInGroup', without the player being in the server?

0

No, because :IsInGroup() is called on a player object, which you can't get if the player isn't in the game. Please accept the answer if it helped

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