Discern
|
  |
| Joined: 02 Feb 2013 |
| Total Posts: 331 |
|
|
| 18 Apr 2014 08:50 AM |
So I have edited this script forever, and it won't work. Can someone please tell me why?
The window that pops up to ask you to buy something won't pop up when you press the GUI.
This script is in a LocalScript, located in a TextButton in a player's PlayerGui.
script.Parent.Parent.Parent.Parent is the Player.
The productId is a T-Shirt.
buyButton is a TextButton.
I HAVE tried putting this in a regular script in the same spot, but still the same outcome.
Script:
local MarketplaceService = game:GetService("MarketplaceService") local buyButton = script.Parent local productId = 153902087 buyButton.MouseButton1Click:connect(function() MarketplaceService:PromptProductPurchase(script.Parent.Parent.Parent.Parent, productId, 0) end)
All help is appreciated. Thanks. |
|
|
| Report Abuse |
|
|
Discern
|
  |
| Joined: 02 Feb 2013 |
| Total Posts: 331 |
|
| |
|
Discern
|
  |
| Joined: 02 Feb 2013 |
| Total Posts: 331 |
|
| |
|
DataStore
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 8540 |
|
|
| 18 Apr 2014 09:24 AM |
| As I indicated on the other thread, PromptProductPurchase is used to sell developer products (the items which can be sold more than once). You need to use PromptPurchase for things like T-Shirts, Pants, Shirts, etc. |
|
|
| Report Abuse |
|
|
Discern
|
  |
| Joined: 02 Feb 2013 |
| Total Posts: 331 |
|
|
| 18 Apr 2014 09:30 AM |
Oh. *Facepalm* I am so clueless sometimes.
Thanks for your help, and sorry for being such an idiot. |
|
|
| Report Abuse |
|
|