For Some Reason My Script Isnt Working And I Did Get It From A Tutorial But An Error Occurs.
The Error Is On My Server Script On Line 6 Saying "Missing Argument 1 Or Nill
It Is Located In ServerScriptService Here Is My Server Script
local MarketplaceService = game:GetService("MarketplaceService")
local productID = 1174420470
local function procces (receiptInfo)
local Plr = game.Players:GetPlayerByUserId(receiptInfo.UserId)
if Plr then
print("Yes")
else
return Enum.ProductPurchaseDecision.NotProcessedYet
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
MarketplaceService.ProcessReceipt = procces
Here Is My Client Script
wait(5)
local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
local productID = 1174420470 -- Change this to your developer product ID
-- Function to prompt purchase of the developer product
local player = Players.LocalPlayer
MarketplaceService:PromptProductPurchase(player, productID)
