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?
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.