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

userId to Player Name via MarketPlaceService?

Asked by 9 years ago

Is there any way to get a players name via their userId by using MarketPlaceService? I need this so when the player isn't in the server, I can still access their name using their ID.

Thanks.

1
I'm not sure if it is possible through MarketPlaceService, but I know it can be done with this script, http://www.roblox.com/GetUserNameFromId-item?id=180439624 credit to As8D M39a9am3R 3210 — 9y
0
@m39, Your answer uses InsertService, which is just as versatile as MarketplaceService. Clever. Diitto 230 — 9y
0
I tried heading to that link. All I got was a Roblox Error. ObscureEntity 294 — 9y
0
Nvm, got it . Thanks! ObscureEntity 294 — 9y

1 answer

Log in to vote
1
Answered by 8 years ago

Just for reference there was a method of Players created specifically for this recently. game.Players:GetNameFromUserIdAsync(userId) will return a player's name given their userId. There is also a counterpart method :GetUserIdFromNameAsync(username) that will return a person's userId given their username.

Ad

Answer this question