I was reading off the wiki about dev products because it was my first time using them, but every time I use my function in my server script and print the ID of the product it prints is nil.
Any help?
Client:
local MPS = game:GetService("MarketplaceService")
-- // Dev Products
script.Parent.Product1.TextButton.MouseButton1Click:Connect(function()
local ProdID = 314544711
MPS:PromptProductPurchase(Player, ProdID)
end)
Server:
local MPS = game:GetService("MarketplaceService")
function MPS.ProcessReceipt(receiptInfo)
print(receiptInfo.ProdID) -- // Where it prints nil
return Enum.ProductPurchaseDecision.PurchaseGranted
end