In my clothing homestore I would like to have a leaderboard showing the number of shirts/pants each player has purchased to display it to everyone in the game.
(Code For Clothes Purchase)
local CLICK_BLOCK = script.Parent local ITEM_ID = 0
local Click = Instance.new("ClickDetector",CLICK_BLOCK)
Click.MouseClick:connect(function(p) game:GetService("MarketplaceService"):PromptPurchase(p,ITEM_ID) end)
I figure I would need to put code at the end of this to check if the player selected yes and actually purchased the shirt but I'm not sure how I would write that.
Thank You