I have a skip stage gui which, I put this script into serverscriptservice for it, it seems to not be working could someone help?
stat = "Stage" -- Change to the stat's name.
award = 1 -- Change to the ammount of stat to award.
--------------------------------------------------------------------------------------------------
MarketplaceService = Game:GetService("MarketplaceService")
MarketplaceService.ProcessReceipt = function(receiptInfo)
players = game.Players:GetPlayers()
for i=1,#players do
if players[i].userId == receiptInfo.PlayerId then
players[i].leaderstats[stat].Value = players[i].leaderstats[stat].Value+award
end
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end

2 comments
The whole script isnt working or is it just when you want them to "teleport" to the next checkpoint?
The whole script does not work.