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
 

PromptPurchase Help

Previous Thread :: Next Thread 
Pythoz is not online. Pythoz
Joined: 08 Jan 2012
Total Posts: 18
08 Mar 2014 01:36 PM
So I made a shop GUI for my game and wanted to add game passes. I need help getting the message to pop up and allow people to buy the item. I looked on the wiki and modified the script but it still doesnt work. Value has the productid

id = script.Parent.productkey.Value
function clicked(player)
Game:GetService("MarketplaceService"):PromptProductPurchase(player, id)
end
script.Parent.MouseButton1Down:connect(clicked)
Report Abuse
Pythoz is not online. Pythoz
Joined: 08 Jan 2012
Total Posts: 18
08 Mar 2014 01:45 PM
bump
Report Abuse
FriendlyLOLpwnzr is not online. FriendlyLOLpwnzr
Joined: 12 Sep 2011
Total Posts: 9320
08 Mar 2014 01:48 PM
You probably just made a syntax error on the second and third line. Try copying the one I tried fixing.

id = script.Parent.productkey.Value
function.Clicked(player)
game:GetService("MarketplaceService"):PromptProductPurchase(player, id)
end
script.Parent.MouseButton1Down:connect(clicked)
Report Abuse
Pythoz is not online. Pythoz
Joined: 08 Jan 2012
Total Posts: 18
08 Mar 2014 01:52 PM
@Above, That just makes it worst 1 being that you wrote "function.Clicked" (No dots) 2nd being the although you wrote with a capital at the beginning, at the end you wrote "clicked"
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