heroesp
|
  |
| Joined: 23 Feb 2011 |
| Total Posts: 3214 |
|
|
| 26 Jun 2016 12:19 AM |
local MarketplaceService = game:GetService("MarketplaceService") local ds = game:GetService("DataStoreService"):GetDataStore("PurchaseHistory") First = 35587367 Second = 35587494
MarketplaceService.ProcessReceipt = function(receiptInfo) local playerProductKey = "player_" .. receiptInfo.PlayerId .. "_product_" .. receiptInfo.ProductId local numberBought = ds:IncrementAsync(playerProductKey, 1) for i,v in pairs (game.Players:GetChildren()) do if v.userId == receiptInfo.PlayerId then if receiptInfo.ProductId == First then local lds = v:FindFirstChild("leaderstats") if lds ~= nil then local cs = lds:FindFirstChild("Money") if cs ~= nil then cs.Value = cs.Value + 500 elseif receiptInfo.ProductID == Second then local lds = v:FindFirstChild("leaderstats") if lds ~= nil then local cs = lds:FindFirstChild("Money") if cs ~= nil then cs.Value = cs.Value + 1000 end end end end end return Enum.ProductPurchaseDecision.PurchaseGranted end end end
-- How do I get this working with multiple Devloper IDs?
#ECSMasterRace R$7,159 | https://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=14976471 |
|
|
| Report Abuse |
|
|
heroesp
|
  |
| Joined: 23 Feb 2011 |
| Total Posts: 3214 |
|
|
| 26 Jun 2016 12:20 AM |
[Adding on]
Only the first developer ID seems to work
#ECSMasterRace R$7,159 | https://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=14976471 |
|
|
| Report Abuse |
|
|
heroesp
|
  |
| Joined: 23 Feb 2011 |
| Total Posts: 3214 |
|
|
| 26 Jun 2016 12:37 AM |
KEKK PLZ
#ECSMasterRace R$7,859 | https://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=14976471 |
|
|
| Report Abuse |
|
|
heroesp
|
  |
| Joined: 23 Feb 2011 |
| Total Posts: 3214 |
|
|
| 26 Jun 2016 02:24 AM |
bump
#ECSMasterRace R$7,864 | https://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=14976471 |
|
|
| Report Abuse |
|
|