Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Trouble with Developer Products?

Asked by 10 years ago
local MarketplaceService = Game:GetService("MarketplaceService")
plr=script.Parent.Parent.Parent.Parent.Parent.Parent
MarketplaceService.ProcessReceipt = function(receiptInfo)
    plr.Coins.Value = plr.Coins.Value + script.Parent.Amount.Value
    return Enum.ProductPurchaseDecision.PurchaseGranted     
end

I have the amount set to a different amount on each product, however all of them give 1000 rather than the number I want to give. This has confused me slightly, does anybody know how to shed some light on this?

1 answer

Log in to vote
0
Answered by 10 years ago

you have it set to be local, regardless of using a regular script. Its better to have a script in workspace that processes all purchases made after you prompt it locally. I am no professional by far in MarketplaceService, but I have used it in the past and it works for me.

Ad

Answer this question