doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 14 Aug 2014 08:53 PM |
My script plays if the hopperbin is selected or not. How does it play only when the hopperbin is selected?
mouse = game.Players.LocalPlayer:GetMouse()
mouse.Button1Down:connect(function() print("down") end) |
|
|
| Report Abuse |
|
|
Vescatur
|
  |
| Joined: 18 Feb 2012 |
| Total Posts: 3426 |
|
|
| 14 Aug 2014 08:56 PM |
mouse = game.Players.LocalPlayer:GetMouse()
function select() mouse.Button1Down:connect(function() print("down") end) end
hopperbintoolthingylocation.Selected:connect(select) |
|
|
| Report Abuse |
|
|
| |
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 14 Aug 2014 09:01 PM |
--Shortenned :3
HopperBin.Selected:connect(function(mouse) --parameter can be used for da mouse mouse.Button1Down:connect(function() print("Down") end) end) |
|
|
| Report Abuse |
|
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
| |
|