My attempt:

local link  = "http://rbx.rocks/user/"..game.Players.LocalPlayer.Name
local http = game:GetService("HttpService")
local html = http:GetAsync(link, false)
local string = [[<span style="color:#70DC58;padding-bottom:3px;font-size:22px;">%d+</span>]]
local snippet = html:match(string)
RAP = (snippet:match("%d+"))
print(RAP)

Error: HTTP 503 (HTTP/1.1 503 Service Temporarily Unavailable)

5 comments

0

Did you even read your error message? The service is temporarily unavailable. That being said, you may want to wrap your HTTP request in a pcall, so that you can react in consequence.

3

The HttpService can not be used in a local script.

0

Rbx.rocks is currently down, reporting 503 temporarily unavailable. It has cloudflare ddos protection as well so you will have to authorize the roblox client beforehand somehow.

0

You could also try using rbx.trade for retrieving RAP, but I would ask the creator first as it will take server bandwidth. I don't believe api.roblox.com/docs has any rap api.

0

yeah thats a good idea but the total rap looks the exact same as the item rap