Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Trouble with Developer Products?

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

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.