I need help with a ranking center. So if a player have buyed a certain item the player will get ranked up on my group.
Here is what I have scripted so far.
local ms = game:GetService("MarketplaceService")
local button = script.Parent.TextButton
local assetId = 997023296
button.MouseClick:Connect(function(Clicked)
if Clicked then
local plr = --???
if plr then
if ms:PlayerOwnsAsset(plr,assetId) then
--Ranking player ???
else
end
end
end
end)

6 comments
Okay! Thank you! (: I am still learning to script don't judge me. xD
Is it possible to make the player can't rank up if the player are a certain rank or above?
Nevermind is not working, I wonder if the player could get ranked up on the GROUP? Not on leaderstats.
There's a small typo in your function name.
Oh yeah, sos
The player cant get ranked up in the group as there is no way to do that