CrowClaws
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 4466 |
|
|
| 29 Sep 2014 07:17 PM |
p.MouseClick:connect(function(plr)
Is it suppose ot be only right click? Is there a way to change it? I want MouseClick to fire when left mouse button is pressed not right. |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2014 07:19 PM |
| Is "p" a GUI? If so, use MouseButton2Click. |
|
|
| Report Abuse |
|
|
CrowClaws
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 4466 |
|
| |
|
CrowClaws
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 4466 |
|
|
| 29 Sep 2014 07:21 PM |
| And I want it to be left click not right click.... 1 is left click. 2 Is right clikc (i think) |
|
|
| Report Abuse |
|
|
lama321
|
  |
| Joined: 18 Dec 2011 |
| Total Posts: 300 |
|
|
| 29 Sep 2014 07:26 PM |
| MouseClick event will fire when the part is right or left clicked, for more control you can place a localscript in the starterpack and get the playermouse that way |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2014 07:28 PM |
ClickDetectors cannot do this. However, you can take it up a notch and use:
Get player mouse: http://wiki.roblox.com/index.php?title=API:Class/Player/GetMouse Mouse right click: http://wiki.roblox.com/index.php?title=API:Class/Mouse/Button2Down What the mouse is hovering on: http://wiki.roblox.com/index.php?title=API:Class/Mouse/Target |
|
|
| Report Abuse |
|
|