local mpService = game:getService("MarketplaceService")
mpService.ProcessReceipt = function(purchaseInfo)
local plr = game:getService("Players"):GetPlayerByUserId(purchaseInfo.PlayerId)
if purchaseInfo.ProductId == 335171701 then
player.leaderstats.Power.Value = player.leaderstats.Power.Value + 100
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
There is my code, but it won't actually add anything to the leaderboard.

1 comment
or just use receiptInfo.PlayerId