generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Help [2]

Previous Thread :: Next Thread 
heroesp is not online. 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 is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image