Advertisement
Jackthehunter25

Untitled

Nov 27th, 2020
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. local mps = game:GetService("MarketplaceService")
  2.  
  3. mps.ProcessReceipt = function(receiptInfo)
  4. if receiptInfo.ProductId == 1088662111 then
  5. local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
  6. player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 100
  7. return Enum.ProductPurchaseDecision.PurchaseGranted
  8. end
  9. -- 100 cash
  10. if receiptInfo.ProductId == 1118688140 then
  11. local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
  12. player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 500
  13. return Enum.ProductPurchaseDecision.PurchaseGranted
  14. end
  15. -- 500 cash
  16. if receiptInfo.ProductId == 1118688247 then
  17. local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
  18. player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 1250
  19. return Enum.ProductPurchaseDecision.PurchaseGranted
  20. end
  21. if receiptInfo.ProductId == 1118688441 then
  22. local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
  23. player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 2000
  24. return Enum.ProductPurchaseDecision.PurchaseGranted
  25. end
  26. if receiptInfo.ProductId == 1118688565 then
  27. local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
  28. player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 2800
  29. return Enum.ProductPurchaseDecision.PurchaseGranted
  30. end
  31. if receiptInfo.ProductId == 1118688866 then
  32. local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
  33. player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 4000
  34. return Enum.ProductPurchaseDecision.PurchaseGranted
  35. end
  36. end
  37.  
  38.  
  39.  
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement