Okay. I am trying to make to give players who own my gamepass Unlimited money, someone recommended math.huge but is this the right script?
local player = nil--Provide the player I think
local MS = game:GetService("MarketplaceService")
local Gamepass Id = 0
MS:PromptProductPurchase(player,Id)
MS.ProcessReceipt = function(receiptInfo)
if Enum.ProductPurchaseDecision.PurchaseGranted and recieptInfo.PlayerId
== Player.userId then
= Player.leaderstats.Cash.Value Player.leaderstats.Cash.Value + math.huge
end

2 comments
Why don't you just have a stringvalue as the cash and make it say "Unlimited"... then in a script check if it says that and make sure they get all items for free..?
^Do this.