Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local MPS = game:GetService("MarketplaceService")
- local ID = 1155165380 -- Change this to your ID
- MPS.ProcessReceipt = function(receiptInfo)
- print(receiptInfo.ProductId)
- if receiptInfo.ProductId == ID then
- local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
- player.leaderstats.Stage.Value = player.leaderstats.Stage.Value + 1
- player.Character:WaitForChild("Humanoid").Health = 0
- return Enum.ProductPurchaseDecision.PurchaseGranted
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement