|
| 08 Aug 2011 05:17 AM |
| hi guys the mouse.Button2Up and mouse.Button2Down function callers are not working... any ideas on why? |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 08 Aug 2011 05:22 AM |
| A quick scan on the wiki reveals that they don't exist. |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 08 Aug 2011 05:22 AM |
| Nope my bad lol. Are you using the functions in a hopperbin or gui script? |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2011 05:23 AM |
http://wiki.roblox.com/index.php/Button2Down_%28Event%29
whats that then!??!! |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 08 Aug 2011 05:24 AM |
| I did correct myself before you posted that, so your post is INVALID MUAHAHHAHAHA |
|
|
| Report Abuse |
|
|
| |
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 08 Aug 2011 05:28 AM |
| Tools/hopperbins, whatever floats your boat. Umm yeah, is the script local? That' all i can think off, sorry |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2011 05:29 AM |
| yup and its still not calling... i just tryed that :P |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2011 05:31 AM |
In a localscript inside hopperbin,
local bin = script.Parent
bin.Selected:connect(function(m) --m = mouse, selected returns the mouse --mouse can access keyboard m.Button1Down:connect(function() print("Left click!") end) m.Button2Down:connect(function() print("Right click!") end) end)
|
|
|
| Report Abuse |
|
|
|
| 08 Aug 2011 05:31 AM |
Btw, function caller = Event
:] |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2011 05:35 AM |
function onSelected(mouse) onButton1Up(mouse)
mouse.Button1Down:connect(function() onButton1Down(mouse) end) mouse.Button1Up:connect(function() onButton1Up(mouse) end) mouse.Button2Down:connect(function() onButton2Down(mouse) end) mouse.Button2Up:connect(function() onButton2Up(mouse) end) mouse.KeyDown:connect(onKeyDown) mouse.KeyUp:connect(onKeyUp) end
thats the one i got but the Button1Down and up work fine... |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2011 05:52 AM |
the functions currently are
function Button2Up(mouse) print("working") end
function Button2Down(mouse) print("working") end
there like that for debugging currently but they are not printing
the Button1Up and Button1Down are parts of moving a ship and targeting computer :P i wanted to move the targeting computer to right click but no avail currently... |
|
|
| Report Abuse |
|
|