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: Mouse Enter and Mouse Leave

Previous Thread :: Next Thread 
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
30 Jul 2012 12:55 PM
How would I use mouse enter and mouse leave on a GUI?

Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
30 Jul 2012 12:57 PM
local frame = script.Parent;

frame.MouseEnter:connect(function (mX, mY)
print("Mouse entered - ("..mX..", "..mY..")");
end);

frame.MouseLeave:connect(function ()
print("Mouse left");
end);
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
30 Jul 2012 02:00 PM
OK,Thanks.

But what does the (mX, mY) mean?
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
30 Jul 2012 02:02 PM
mouse-X and mouseY (stupid filter)
Coordinates of the mouse in 2d space.
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
30 Jul 2012 02:10 PM
Ah. Thanks for the help.
Report Abuse
Ayrun is not online. Ayrun
Joined: 27 Jul 2012
Total Posts: 181
30 Jul 2012 02:13 PM
Bump of tracking.

Creepy I know. c;
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
30 Jul 2012 02:18 PM
^
lol

@OP: yw :D
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
30 Jul 2012 02:22 PM
@dr01d, IKR?

The one Day I couldn't figure out something and I had my function named "Was_Hit" [ without the Underscore ] and it look Me like FOREVER to figure out why the Filter wouldn't let Me post it.
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
30 Jul 2012 04:00 PM
Why does this not work?
It changes to Color3.new(178,178,178) but wont change back to Color3.new(51,51,51)

Button1.MouseEnter:connect(function (mX, mY)
Button1.BackgroundColor3 = Color3.new(178, 178, 178)
print("Mouse entered - ("..mX..", "..mY..")")
end)

Button1.MouseLeave:connect(function ()
Button1.BackgroundColor3 = Color3.new(51, 51, 51)
print("Mouse left")
end)
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
30 Jul 2012 10:18 PM
Anyone know how to fix my script?
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
30 Jul 2012 10:36 PM
Button1.MouseEnter:connect(function (mX, mY)
Button1.BackgroundColor3 = Color3.new(178/255, 178/255, 178/255)
print("Mouse entered - ("..mX..", "..mY..")")
end)
Button1.MouseLeave:connect(function ()
Button1.BackgroundColor3 = Color3.new(51/255, 51/255, 51/255)
print("Mouse left")
end)

?

† KMXD † ~ Evil Duck Overlord, bent on world domination.
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
31 Jul 2012 10:02 AM
Thanks for the help.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
31 Jul 2012 10:04 AM
No problem.

† KMXD † ~ Evil Duck Overlord, bent on world domination.
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