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 with Dev Product Scripts.

Previous Thread :: Next Thread 
rubene45 is not online. rubene45
Joined: 08 May 2012
Total Posts: 333
21 Jan 2017 12:46 PM
So I have a shop that has 2 dev products in textbuttons, they have the same scripts but only one of these (10 Gems) works. Help!


Script 5 Gems:

local MarketplaceService = game:GetService("MarketplaceService")
local ds = ga###################################################################local productId = 29974967

MarketplaceService.ProcessReceipt = function(receiptInfo)

for i, player in ipairs(game.Players:GetChildren()) do
if player.userId == receiptInfo.PlayerId then


if receiptInfo.ProductId == productId then

player.Gems.Value = player.Gems.Value + 5
print("Sucessfully 5 Gems!")
end
end
end

return Enum.ProductPurchaseDecision.PurchaseGranted
end



localscript:

local buyButton = script.Parent
local productId = 29974967

buyButton.MouseButton1Click:connect(function()
game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, productId)
end)



Script 10 Gems:

local MarketplaceService = game:GetService("MarketplaceService")
local ds = ga###################################################################local productId = 29974976

MarketplaceService.ProcessReceipt = function(receiptInfo)

for i, player in ipairs(game.Players:GetChildren()) do
if player.userId == receiptInfo.PlayerId then


if receiptInfo.ProductId == productId then

player.Gems.Value = player.Gems.Value + 10
print("Sucessfully 10 Gems!")
end
end
end

return Enum.ProductPurchaseDecision.PurchaseGranted
end


localscript:

local buyButton = script.Parent
local productId = 29974976

buyButton.MouseButton1Click:connect(function()
game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, productId)
end)

Report Abuse
rubene45 is not online. rubene45
Joined: 08 May 2012
Total Posts: 333
21 Jan 2017 02:37 PM
Bump
Report Abuse
rubene45 is not online. rubene45
Joined: 08 May 2012
Total Posts: 333
22 Jan 2017 05:42 AM
Bump 2 why nobody helps me
Report Abuse
ASpoonfullOfSucrose is not online. ASpoonfullOfSucrose
Joined: 28 Oct 2015
Total Posts: 442
22 Jan 2017 05:48 AM
Maybe it's the giant block of hashes that obscure a chunk of your script which may contain the problem.
Report Abuse
rubene45 is not online. rubene45
Joined: 08 May 2012
Total Posts: 333
22 Jan 2017 05:57 AM
I don't know why roblox censors script anyways here it is: ga################################################################### = ###################################################################
Report Abuse
rubene45 is not online. rubene45
Joined: 08 May 2012
Total Posts: 333
22 Jan 2017 05:59 AM
game :GetService (" Data Store Service ") GetDataStore ("PurchaseHistory")
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
22 Jan 2017 07:32 AM
hmmm...i wonder

MAYBE BECAUSE YOU DIDNT READ THE WIKI ARTICLES?


Report Abuse
rubene45 is not online. rubene45
Joined: 08 May 2012
Total Posts: 333
22 Jan 2017 07:56 AM
That is the same script as wiki's, read it before posting.
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
22 Jan 2017 07:57 AM
"ARTICLES"
"S"

read before posting.


Report Abuse
rubene455 is not online. rubene455
Joined: 12 Jul 2013
Total Posts: 13
22 Jan 2017 08:03 AM
Should I care? This is a forum to get helped, and you ain't helping me since I already tried the wiki method and didn't worked.
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
22 Jan 2017 08:06 AM
a) "This is the place for discussion about scripting. Anything about scripting that is not a help request or topic belongs here."

"not a help request or topic"

b) you changed it, so its not the wiki's method anymore. if you had been bothered to search it up, there is an actual page about handling multiple dev products.



Report Abuse
rubene455 is not online. rubene455
Joined: 12 Jul 2013
Total Posts: 13
22 Jan 2017 08:10 AM
The method that uses the wiki DOESN'T work for multiple dev products.
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
22 Jan 2017 08:10 AM
theres more the one method LOL


Report Abuse
rubene455 is not online. rubene455
Joined: 12 Jul 2013
Total Posts: 13
22 Jan 2017 08:13 AM
I'm searching in the developer product in the wiki, but I only find a method using data stores, I don't know where you found the other methods.
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
22 Jan 2017 09:41 AM
http://wiki.roblox.com/index.php?title=Handling_multiple_developer_products fail


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