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

Get small information from api.roblox?

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

✓ Accepted answer

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!

4 comments

1

Would there be a way for someones rap to be shown instead then?

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.

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.

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.

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