RAP not displaying right amount

So basically, Rdite has 51,301 RAP in reality, but the game shows he has 14,442.

What is wrong?

RAP can be seen here: Rdite | Profile | Rolimon's

2 Likes

Is that your game? If so, can we see the code you are using to determine the RAP? If this isn’t your game, then this thread doesn’t belong here and you should message the game’s developer that a potential issue in their code is appearing. This category isn’t for reporting issues with others’ games.

It’s also worth noting that Rolimon’s is not an official channel so any information there is or can be subjective and inaccurate. Only official channels hold a real’s user RAP and can be found through web APIs either directly or indirectly.

2 Likes

It is my game.

And the code is using API, not rolimons.

And this is the script:

local DSS = game:GetService(“DataStoreService”)
local HttpService = game:GetService(“HttpService”)
local Players = game:GetService(“Players”)

local GDS = DSS:GetOrderedDataStore(“RapGlobal”)
local board = workspace:WaitForChild(“GlobalLeaderboard”)

local Template = board.SurfaceGui.Leaderboard.Frame:Clone()
board.SurfaceGui.Leaderboard.Frame:Destroy()

local Endpoint = “https://inventory.rprxy.xyz/v1/users/%d/assets/collectibles”

local function GetRap(UserId)
local success, result = pcall(HttpService.GetAsync, HttpService, Endpoint:format(UserId))
if not success then
return 0
else
local decoded = HttpService:JSONDecode(result)
local RAP = 0
for i, v in pairs(decoded[“data”]) do
RAP = RAP + v[“recentAveragePrice”]
end
return RAP
end
end