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: Does this Button event exist?

Previous Thread :: Next Thread 
Augmentary is not online. Augmentary
Joined: 30 Aug 2013
Total Posts: 8081
15 Nov 2014 10:07 PM
If you click anywhere besides on the Button, a function executes?
Report Abuse
ash877 is not online. ash877
Joined: 18 Feb 2008
Total Posts: 5142
15 Nov 2014 10:07 PM
Using the GetMouse() method?
Report Abuse
ash877 is not online. ash877
Joined: 18 Feb 2008
Total Posts: 5142
15 Nov 2014 10:08 PM
like checking if the target is a gui element or a frame? I only tested it on parts tho.
Report Abuse
Augmentary is not online. Augmentary
Joined: 30 Aug 2013
Total Posts: 8081
15 Nov 2014 10:17 PM
I will try this.
Report Abuse
Augmentary is not online. Augmentary
Joined: 30 Aug 2013
Total Posts: 8081
15 Nov 2014 10:21 PM
Perhaps target only includes parts and not GUI elements.
Report Abuse
Augmentary is not online. Augmentary
Joined: 30 Aug 2013
Total Posts: 8081
15 Nov 2014 10:37 PM
Is there a more efficient method available?
Report Abuse
Augmentary is not online. Augmentary
Joined: 30 Aug 2013
Total Posts: 8081
16 Nov 2014 08:18 AM
Bump
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
16 Nov 2014 08:29 AM
What do you mean? If you use GetMouse, you can track entry/exit of buttons.
This means, fortunately, that you can get the Mouse1Down event, and check if the mouse is still in any buttons hehe
Report Abuse
Augmentary is not online. Augmentary
Joined: 30 Aug 2013
Total Posts: 8081
16 Nov 2014 08:45 AM
I tried it with target and it works except for when I click another button. Then it doesn't do anything.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
16 Nov 2014 08:49 AM
I never suggested to use Terget, so you know my solution is still avaliable :3
Report Abuse
Augmentary is not online. Augmentary
Joined: 30 Aug 2013
Total Posts: 8081
16 Nov 2014 09:01 AM
Sorry. What is the event or property name? I cannot find it in object browser.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
16 Nov 2014 09:09 AM
http://wiki.roblox.com/index.php?title=API:Class/Mouse/Button1Down
Report Abuse
Augmentary is not online. Augmentary
Joined: 30 Aug 2013
Total Posts: 8081
16 Nov 2014 09:15 AM
I know that much; I don't know how you'd find if the mouse is in a GUI. Is it a parameter?
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
16 Nov 2014 09:21 AM
Nah.
When the mouse goes inside a button, track it. When it goes out, stop tracking. If the mouse is being tracked by a button when Mouse1 is down, then you can suppose that it's on the button. Otherwise, it's not on the button.
Report Abuse
Augmentary is not online. Augmentary
Joined: 30 Aug 2013
Total Posts: 8081
16 Nov 2014 10:10 AM
"When the mouse goes inside a button, track it."
But how do I know when the mouse is inside a GUI?
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
16 Nov 2014 10:17 AM
It's an event for the GUI element, I'm sure.
Report Abuse
Augmentary is not online. Augmentary
Joined: 30 Aug 2013
Total Posts: 8081
16 Nov 2014 10:18 AM
Gah, MouseEnter.
You're right; I was looking under mouse. thx
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