Detecting If A Player Has Brought A Developer Product Has Been Brought Not Working?
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
01 | local MarketplaceService = game:GetService( "MarketplaceService" ) |
03 | local productID = 1174420470 |
05 | local function procces (receiptInfo) |
06 | local Plr = game.Players:GetPlayerByUserId(receiptInfo.UserId) |
10 | return Enum.ProductPurchaseDecision.NotProcessedYet |
13 | return Enum.ProductPurchaseDecision.PurchaseGranted |
16 | MarketplaceService.ProcessReceipt = procces |
Here Is My Client Script
2 | local MarketplaceService = game:GetService( "MarketplaceService" ) |
3 | local Players = game:GetService( "Players" ) |
5 | local productID = 1174420470 |
8 | local player = Players.LocalPlayer |
9 | MarketplaceService:PromptProductPurchase(player, productID) |