I’m trying to add developer products into my game, and it doesn’t work, seeing as although the prompt works, the developer product prompt always fails. I know it isn’t ROBLOX Studio issues as I tried in roblox and the same thing occured. Help much appreciated:
Code:
local MarketplaceService = game:GetService("MarketplaceService")
local ProductId = 1339191757
function MarketplaceService.ProcessReceipt(ReceiptInfo)
local Player = game:GetService("Players"):GetPlayerByUserId(ReceiptInfo.PlayerId)
if not Player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if ReceiptInfo.ProductId == ProductId then
Player:WaitForChild("SpleefCoins").Value += 500
return Enum.ProductPurchaseDecision.PurchaseGranted
elseif ReceiptInfo.ProductId == 1339221667 then
print(Player.Name.." Donated!")
return Enum.ProductPurchaseDecision.PurchaseGranted
else
return Enum.ProductPurchaseDecision.NotProcessedYet
end
end
Meanwhile, I’ll double check the id’s and everything