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

How can i add multiple Developer products?

> `local MarketplaceService = game:GetService('MarketplaceService')
> local devproductid = 94449467
> 
> MarketplaceService.ProcessReceipt = function(receiptInfo)
> 	for i, player in ipairs(game.Players:GetChildren()) do
> 		if player.userId == receiptInfo.PlayerId then
> 			if receiptInfo.ProductId == devproductid then
> 				player.Stats.Coins.Value = player.Stats.Coins.Value + 25
> 			end
> 		end
> 	end
> 	return Enum.ProductPurchaseDecision.PurchaseGranted
> end
> `

1 comment

0

Why so many ">" symbols?

1 answer

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