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

HTTP Service Help?

I just started trying this and I don't know why it won't work.

    local player = game.Players.LocalPlayer
    local userid = player.UserId
    local link  = "http://www.roblox.com/User.aspx?ID=1"
    local Service = game:GetService("HttpService")
    local html = Service:GetAsync(link, false)
    local string = [[<span id="ctl00_cphRoblox_rbxUserStatisticsPane_lPlaceVisitsStatistics" class="notranslate">%d+</span>]]
    local thingy = html:match(string)
    Visits = (thingy:match("%d+"))

	print(Visits)

3 comments

0

What am I doing wrong?

0

What are you trying to do? What's happening instead?

0

I'm trying to print ROBLOX's visits.

2 answers

You can't use HttpService on Roblox.com. You need to use a proxy for that. I was working on this problem for several hours tonight, still without finding a great proxy to use

4 comments

0

How can I run this script with a proxy then?

0

You could TRY replacing http://roblox.com with http://rproxy.pw

0

"Attempt to index 'thingy' a nil value." damn

0

I still haven't got a solution

You cannot use HTTP service on Roblox. I think it is to not overload their website with requests and stuff. But, you can make your own website that when sent a request (maybe add a password that you have to request so no one is randomly using your website), it sends it to Roblox..

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