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

How can i add multiple Developer products?

Asked by 6 years ago
> `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
> `
0
Why so many ">" symbols? hiimgoodpack 2009 — 6y

1 answer

Log in to vote
0
Answered by
Asceylos 562 Moderation Voter
6 years ago
Edited 6 years ago

This wiki article will teach you how to: http://wiki.roblox.com/index.php?title=Handling_multiple_developer_products

Ad

Answer this question