-- Made by K0LP123
-- Player has to be added to Rolimons database. You can add him here: https://www.rolimons.com/players (INV NEEDS TO BE PUBLIC!!!)
local Players = game:GetService("Players")
local HttpService = game:GetService("HttpService")
local function leaderboardSetup(player)
local URL_Rolimons = "https://api.rolimons.com/players/v1/playerinfo/" .. player.UserId
local response = HttpService:GetAsync(URL_Rolimons)
local data = HttpService:JSONDecode(response)
print("Value: ",data.rap,"Rap: ", data.rap)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local Value = Instance.new("IntValue")
Value.Name = "Value"
Value.Value = data.value
Value.Parent = leaderstats
local RAP = Instance.new("IntValue")
RAP.Name = "RAP"
RAP.Value = data.rap
RAP.Parent = leaderstats
end
local function onPlayerAdded(player)
print(player.UserId)
end
Players.PlayerAdded:Connect(leaderboardSetup)
Players.PlayerAdded:Connect(onPlayerAdded)
I checked it out and it shows the latest saved information. If a player is not added to Rolimons or when added had a private inventory instead of numbers is “~”
Hi I’m the creator of Rolimon’s where this data is sourced from. Nice to see people making useful things with our data
If anyone has questions regarding our APIs or data, feel free to contact me (lately I’m not on dev forums much so Discord is typically best). There are certain technical limitations that may arise, for example if this is used in a very popular game there could be rate limit issues, so please contact me for something like that and we can probably come up with solutions if needed.
No game can get around this, there’s no reason to point that out. Their rap would be defined as, for example, -1, or nil, when their inventory is private.