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: A bit worried about dev product issue

Previous Thread :: Next Thread 
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
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
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
26 Feb 2017 10:26 PM
It's on your end.
Report Abuse
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
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
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
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
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
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
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