Here's my code so far -
ShekelsGiven = 100
ProductID = 31831485
game:GetService("MarketplaceService").ProcessReceipt = function(receiptInfo)
for i, player in ipairs(game.Players:GetChildren()) do
if player.userId == receiptInfo.PlayerId then
if receiptInfo.ProductId == ProductID then
if receiptInfo.CurrencyType == Enum.CurrencyType.Robux then
player.ShopValues.Shekels.Value = player.ShopValues.Shekels.Value + ShekelsGiven
end
end
end
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
Thanks for reading.

1 comment
http://wiki.roblox.com/index.php?title=Developer_product#Handling_Purchase