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

How do I get a Username for a player not in game from an ID?

Asked by
Validark 1580 Snack Break Moderation Voter
10 years ago

http://api.roblox.com/Users/2966752

Above is the API I have found. Is there any way to see the output in a game and then detect which part is the Username?

This is the output of the link: {"Id":2966752,"Username":"Validark"}

So it is always after ["Username":]. Is there any sort of Sub method I can use to use this in a script in-game?

1 answer

Log in to vote
1
Answered by
iaz3 190
10 years ago

http://wiki.roblox.com/index.php?title=API:Class/HttpService

I believe you are looking for http://wiki.roblox.com/index.php?title=API:Class/HttpService/JSONDecode

Once it is a Lua table i assume you can figure it out?(the key would be called "Username" i believe, so just get the value)

Ad

Answer this question