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
|
  |
| Joined: 08 Jan 2012 |
| Total Posts: 18 |
|
| |
|
|
| 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
|
  |
| 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 |
|
|