Cerualen
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 12109 |
|
|
| 17 Feb 2014 12:26 PM |
local ITEM_ID = 145878945
script.Parent.MouseButton1Down:connect(function(p) game:GetService("MarketplaceService"):PromptPurchase(p,ITEM_ID) end) |
|
|
| Report Abuse |
|
|
Cerualen
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 12109 |
|
| |
|
Cerualen
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 12109 |
|
| |
|
iYoshiFox
|
  |
| Joined: 14 Apr 2012 |
| Total Posts: 1058 |
|
|
| 17 Feb 2014 12:36 PM |
Make le script local:
local p = game.Players.LocalPlayer local ID = 145878945
script.Parent.MouseButton1Click:connect(function() game:GetService("MarketplaceService"):PromtPurchase(p, ID) end) |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2014 12:39 PM |
| For future reference mouse does not return player but the location of the mouse. |
|
|
| Report Abuse |
|
|
Cerualen
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 12109 |
|
| |
|
Cerualen
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 12109 |
|
| |
|
|
| 17 Feb 2014 12:52 PM |
| Output? Also what type of item is it? |
|
|
| Report Abuse |
|
|
Cerualen
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 12109 |
|
| |
|
|
| 17 Feb 2014 12:57 PM |
| Replace MarketplaceService with GamePassService |
|
|
| Report Abuse |
|
|
Cerualen
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 12109 |
|
|
| 17 Feb 2014 01:04 PM |
Ah ty
Going to try it out :P |
|
|
| Report Abuse |
|
|
Cerualen
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 12109 |
|
| |
|