Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mps = game:GetService("MarketplaceService")
- mps.ProcessReceipt = function(receiptInfo)
- if receiptInfo.ProductId == 1088662111 then
- local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
- player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 100
- return Enum.ProductPurchaseDecision.PurchaseGranted
- end
- -- 100 cash
- if receiptInfo.ProductId == 1118688140 then
- local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
- player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 500
- return Enum.ProductPurchaseDecision.PurchaseGranted
- end
- -- 500 cash
- if receiptInfo.ProductId == 1118688247 then
- local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
- player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 1250
- return Enum.ProductPurchaseDecision.PurchaseGranted
- end
- if receiptInfo.ProductId == 1118688441 then
- local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
- player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 2000
- return Enum.ProductPurchaseDecision.PurchaseGranted
- end
- if receiptInfo.ProductId == 1118688565 then
- local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
- player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 2800
- return Enum.ProductPurchaseDecision.PurchaseGranted
- end
- if receiptInfo.ProductId == 1118688866 then
- local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
- player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 4000
- return Enum.ProductPurchaseDecision.PurchaseGranted
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement