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 » Scripting Helpers
Home Search
 

Can someone please explain to me what's wrong here...

Previous Thread :: Next Thread 
Marolex is not online. Marolex
Joined: 17 Dec 2012
Total Posts: 1785
31 May 2014 03:40 AM
error:
https://twitter.com/Marolex_RBLX/status/472657903531597824

script:
CD = Instance.new("ClickDetector",script.Parent)
CD.MouseClick:connect(function(plr)
local Asset = game:GetService("MarketplaceService"):GetProductInfo(125378389)
Game:GetService("MarketplaceService"):PromptProductPurchase(plr, script.item.Value)
end)
---------------------
I also tried:
CD = Instance.new("ClickDetector",script.Parent)
CD.MouseClick:connect(function(plr)
Game:GetService("MarketplaceService"):PromptProductPurchase(plr, script.item.Value)
end)
which just gave me an error about getproductinfo()

-King Scrub
Report Abuse
Marolex is not online. Marolex
Joined: 17 Dec 2012
Total Posts: 1785
31 May 2014 04:03 AM
bump

-King Scrub
Report Abuse
YoIoist is not online. YoIoist
Joined: 14 Apr 2013
Total Posts: 104
31 May 2014 04:06 AM
CD = Instance.new("ClickDetector",script.Parent)
CD.MouseButton1Down:connect(function(plr)
Game:GetService("MarketplaceService"):PromptProductPurchase(plr.userId, script.item.Value)
end)
Report Abuse
Marolex is not online. Marolex
Joined: 17 Dec 2012
Total Posts: 1785
31 May 2014 04:14 AM
This gets rid of the error however it does not prompt

-King Scrub
Report Abuse
Marolex is not online. Marolex
Joined: 17 Dec 2012
Total Posts: 1785
31 May 2014 04:56 AM
nvm figured it out

-King Scrub
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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