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

How should i go about checking a players RAP?

Asked by 7 years ago

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)

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. Link150 1355 — 7y
3
The HttpService can not be used in a local script. User#5423 17 — 7y
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. GShocked 150 — 7y
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. GShocked 150 — 7y
0
yeah thats a good idea but the total rap looks the exact same as the item rap LuaExecutor -5 — 7y

Answer this question