Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GetRAP = function(Username)
- if Username and tostring(Username) then
- Username = tostring(Username)
- local Response = nil
- local Run, Error = ypcall(function()
- Response = game:GetService("HttpService"):GetAsync("http://aerx-mgui.com/APIs/RAP.php?Username="..Username)
- end)
- if Error or Response == nil then
- return " Unknown [1]"
- else
- if string.sub(Response, 1, 1) == [["]] then
- Response = string.sub(Response, 2)
- end
- if string.sub(Response, string.len(Response, string.len(Response))) == [["]] then
- Response = string.sub(Response, 1, string.len(Response) - 1)
- end
- local Table = nil
- Run, Error = ypcall(function()
- Table = game:GetService("HttpService"):JSONDecode(Response)
- if Table == nil or not Table then
- wait(0.5)
- Table = game:GetService("HttpService"):JSONDecode(Response)
- if Table == nil or not Table then
- wait(0.5)
- GetRAP(Username)
- end
- end
- end)
- wait(0.3)
- if not Error and Table then
- if Table["stats"] then
- if Table["stats"]["RAP"] then
- return Table["stats"]["RAP"]
- else
- return " Unknown [2]"
- end
- else
- return " Unknown [3]"
- end
- else
- return " 20M+"
- end
- end
- else
- return " Unknown [4]"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement