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

userId to Player Name via MarketPlaceService?

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.

4 comments

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

0

@m39, Your answer uses InsertService, which is just as versatile as MarketplaceService. Clever.

0

I tried heading to that link. All I got was a Roblox Error.

0

Nvm, got it . Thanks!

1 answer

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.

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