generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: MouseCLick

Previous Thread :: Next Thread 
CrowClaws is not online. 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
DaMrNelson is not online. DaMrNelson
Joined: 27 Jul 2009
Total Posts: 4405
29 Sep 2014 07:19 PM
Is "p" a GUI? If so, use MouseButton2Click.
Report Abuse
CrowClaws is not online. CrowClaws
Joined: 04 Jul 2010
Total Posts: 4466
29 Sep 2014 07:20 PM
no P is a ClickDetector
Report Abuse
CrowClaws is not online. 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 is not online. 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
DaMrNelson is not online. DaMrNelson
Joined: 27 Jul 2009
Total Posts: 4405
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image