Hello all,
I’ve been noticing something new I guess? And that is my developer product codes no longer function properly, and they had prior to the recent studio update. The print prints nothing, and there’s no “Cash” being awarded. I don’t understand exactly as to why, and would like some feedback if anyone sees anything right out the gate that could be the issue!
Any and all help/feedback is appreciated! Ty
local mps = game:GetService("MarketplaceService")
local cash_100 = 1117585993
local cash_150 = 1117586411
local cash_1000 = 1117586121
local cash_1500 = 1117586551
local function processRecipet(receiptInfo)
local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
if not player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if receiptInfo.ProductId == cash_100 then
if player then
player.stats.Cash.Value = player.stats.Cash.Value + 100
print(player.Name.." bought "..receiptInfo.ProductId)
end
end
if receiptInfo.ProductId == cash_150 then
if player then
player.stats.Cash.Value = player.stats.Cash.Value + 150
end
end
if receiptInfo.ProductId == cash_1000 then
if player then
player.stats.Cash.Value = player.stats.Cash.Value + 1000
end
end
if receiptInfo.ProductId == cash_1500 then
if player then
player.stats.Cash.Value = player.stats.Cash.Value + 1500
end
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
mps.ProcessReceipt = processRecipet