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

HTTP Service Help?

Asked by 9 years ago

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)
0
What am I doing wrong? GullibleChapV2 155 — 9y
0
What are you trying to do? What's happening instead? BlueTaslem 18071 — 9y
0
I'm trying to print ROBLOX's visits. GullibleChapV2 155 — 9y

2 answers

Log in to vote
1
Answered by
Validark 1580 Snack Break Moderation Voter
9 years ago

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

0
How can I run this script with a proxy then? GullibleChapV2 155 — 9y
0
You could TRY replacing http://roblox.com with http://rproxy.pw Validark 1580 — 9y
0
"Attempt to index 'thingy' a nil value." damn GullibleChapV2 155 — 9y
0
I still haven't got a solution Validark 1580 — 9y
Ad
Log in to vote
0
Answered by 7 years ago

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..

Answer this question