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.
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.
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.
4 comments
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
@m39, Your answer uses InsertService, which is just as versatile as MarketplaceService. Clever.
I tried heading to that link. All I got was a Roblox Error.
Nvm, got it . Thanks!