I was trying my game out and the realised that when you buy the dev product you don't get given cash.
local MPS = game:GetService("MarketplaceService")
MPS.ProcessReceipt = function(receiptInfo)
if receiptInfo.ProductId == 967543569 then
local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
player.RealMoney.Value = player.RealMoney.Value + 50
return Enum.ProductPurchaseDecision.PurchaseGranted
elseif receiptInfo.ProductId == 967961278 then
local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
player.RealMoney.Value = player.RealMoney.Value + 200
return Enum.ProductPurchaseDecision.PurchaseGranted
elseif receiptInfo.ProductId == 967558140 then
local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
player.RealMoney.Value = player.RealMoney.Value +600
return Enum.ProductPurchaseDecision.PurchaseGranted
elseif receiptInfo.ProductId == 967558140 then
local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
player.RealMoney.Value = player.RealMoney.Value + 2500
return Enum.ProductPurchaseDecision.PurchaseGranted
elseif receiptInfo.ProductId == 967558285 then
local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
player.RealMoney.Value = player.RealMoney.Value + 7500
return Enum.ProductPurchaseDecision.PurchaseGranted
elseif receiptInfo.ProductId == 967961608 then
local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
player.RealMoney.Value = player.RealMoney.Value + math.huge
return Enum.ProductPurchaseDecision.PurchaseGranted
end
end
