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
|
  |
| Joined: 17 Dec 2012 |
| Total Posts: 1785 |
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 17 Dec 2012 |
| Total Posts: 1785 |
|
|
| 31 May 2014 04:56 AM |
nvm figured it out
-King Scrub |
|
|
| Report Abuse |
|
|