|
| 11 Nov 2017 05:13 PM |
| This isn't functioning properly, I'm trying to make players receive cash when they buy it. I'm trying to see what I am doing wrong, can anyone please help me and tell me what my issue is here? Only this script doesn't function properly local MarketplaceService = game:GetService('MarketplaceService') MarketplaceService.ProcessReceipt = function(receiptInfo) for i, player in ipairs(game.Players:GetChildren()) do if player.userId == receiptInfo.PlayerId then if receiptInfo.ProductId == ######### then local cashmoney = game.ServerStorage.PlayerMoney:FindFirstChild(player.Name) if cashmoney then cashmoney.Value = cashmoney.Value + ##### end elseif receiptInfo.ProductId == ######### then local cashmoney = game.ServerStorage.MoneyStorage:FindFirstChild(player.Name) if cashmoney then cashmoney.Value = cashmoney.Value + ###### end end return Enum.ProductPurchaseDecision.PurchaseGranted end |
|
|
| Report Abuse |
|
|
| 11 Nov 2017 05:24 PM |
Never mind, had a slight misunderstanding.
|
|
|
| Report Abuse |
|