I have this code in serverscriptservice and its not working its for a developer product for my obby
it not printing anything
local MarketplaceService = game:GetService("MarketplaceService")
function processReceipt(receiptInfo)
local player = game:GetService("Players"):GetPlayerByUserId(receiptInfo.PlayerId)
if not player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
-- script below controls what happens if bought
if receiptInfo.PurchaseId == 1187025174 then
if player then
print("Sccesfuly")
end
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
MarketplaceService.ProcessReceipt = processReceipt