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

Get small information from api.roblox?

Asked by
iNicklas 215 Moderation Voter
8 years ago

I don't really know that much about httpservice.

http = game.HttpService

game.Players.PlayerAdded:connect(function(plr)
    local u = "http://api.roblox.com/currency/balance"
    http:GetAsync(u)

print(plr.Name.. "Got this much robux and tix"..u,2)        

end)

On the api it shows the localplayer's robux and tix amount. How would i make this show for each player pressing the button?

1 answer

Log in to vote
0
Answered by
Unclear 1776 Moderation Voter
8 years ago

Sorry, but for that API to work as you want it to you need the user's password. This is because the API looks for a ROBLOX cookie (or you have to provide one in your request). In other words, without account details, the API will not fetch relevant information for you. Sorry!

1
Would there be a way for someones rap to be shown instead then? iNicklas 215 — 8y
0
The comment section does not exist for back-and-forth on material irrelevant to the original question. If you want to pose another question, please write another question separate from this one. Unclear 1776 — 8y
0
It's not completely irrelevant. It's still on the topic of what can be done from Roblox over what has to be done from HttpService. DigitalVeer 1473 — 8y
0
The content defines what is relevant and what is not to a question. Not the title. Hence the "This isn't working?" titles that have nothing really relevant to them. Unclear 1776 — 8y
Ad

Answer this question