|
| 26 Feb 2017 10:24 PM |
I'm wondering if this is common while in studio-testing? I did a buy +10 Spins and it gave me +10 the first time, then I bought +10 more, and it gave me like 40, and it kept multiplying?
|
|
|
| Report Abuse |
|
|
| |
|
|
| 26 Feb 2017 10:29 PM |
| It seems to stack every purchase. If someone buys it once, it gives 10, if its bought twice, it gives 20 instead of 10, and keeps adding 10 every purchase. the script that gives reward is this: game:GetService("MarketplaceService").ProcessReceipt = function(receiptInfo) for i, player in ipairs(game.Players:GetChildren()) do if player.userId == receiptInfo.PlayerId then if receiptInfo.ProductId == ######## then ## ## spins game.ServerStorage[player.Character.Name .. "Stats"].Gold.Value = game.ServerStorage[player.Character.Name .. "Stats"].Gold.Value + 10 end end end local playerProductKey = "p_" .. receiptInfo.PlayerId .. "_p_" .. receiptInfo.PurchaseId #################################################################################################### 1) return Enum.ProductPurchaseDecision.PurchaseGranted end |
|
|
| Report Abuse |
|
|
|
| 26 Feb 2017 10:29 PM |
| Such hashtags. game:GetService("MarketplaceService").ProcessReceipt = function(receiptInfo) for i, player in ipairs(game.Players:GetChildren()) do if player.userId == receiptInfo.PlayerId then if receiptInfo.ProductId == ######## then ## ## spins game.ServerStorage[player.Character.Name .. "Stats"].Gold.Value = game.ServerStorage[player.Character.Name .. "Stats"].Gold.Value + 10 end end end local playerProductKey = "p_" .. receiptInfo.PlayerId .. "_p_" .. receiptInfo.PurchaseId #################################################################################################### 1) return Enum.ProductPurchaseDecision.PurchaseGranted end |
|
|
| Report Abuse |
|
|
|
| 26 Feb 2017 10:30 PM |
game:GetService("MarketplaceService").ProcessReceipt = function(receiptInfo) for i, player in ipairs(game.Players:GetChildren()) do if player.userId == receiptInfo.PlayerId then if receiptInfo.ProductId == NUMBERS then game.ServerStorage[player.Character.Name .. "Stats"].Gold.Value = game.ServerStorage[player.Character.Name .. "Stats"].Gold.Value + NUMBER end end end |
|
|
| Report Abuse |
|
|