drmiewlo
|
  |
| Joined: 14 Mar 2012 |
| Total Posts: 1782 |
|
|
| 05 Jun 2014 11:16 PM |
If you had to choose one over the other, which one would you pick?:
mouse.Button1Down:connect(function() end)
mouse.Button1Up:connect(function() end)
mouse.Button2Down:connect(function() end)
mouse.Button2Up:connect(function() end)
or
mouse.Button1Down:connect(function() end)
mouse.Button2Down:connect(function() end)
mouse.Button1Up:connect(function() end)
mouse.Button2Up:connect(function() end) |
|
|
| Report Abuse |
|
|
kubuto2
|
  |
| Joined: 16 Jul 2008 |
| Total Posts: 1275 |
|
|
| 05 Jun 2014 11:58 PM |
| Everyone would choose the first one unless your just scripting on the fly. |
|
|
| Report Abuse |
|
|
|
| 06 Jun 2014 12:26 AM |
| Personally, the first one. |
|
|
| Report Abuse |
|
|
| |
|
drmiewlo
|
  |
| Joined: 14 Mar 2012 |
| Total Posts: 1782 |
|
|
| 06 Jun 2014 01:06 AM |
| Why "of course"? The second one has the Downs combined and the Ups combined -- seems clean to me. |
|
|
| Report Abuse |
|
|
|
| 06 Jun 2014 01:09 AM |
because its the same button? Button1 and Button2 could do completely different things, and I like to add a little mark so I can ctrl-F stuff like this:
-- Button1 clicks
mouse.Button1Down:connect(function() end)
mouse.Button1Up:connect(function() end)
-- Button2 clicks
mouse.Button2Down:connect(function() end)
mouse.Button2Up:connect(function() end) |
|
|
| Report Abuse |
|
|
|
| 06 Jun 2014 03:49 AM |
mouse.Button1Click:connect(function() --such rebel end)
Also I thought button 2 was your right mouse button being clicked. |
|
|
| Report Abuse |
|
|
| |
|