|
| 30 Jul 2012 12:55 PM |
How would I use mouse enter and mouse leave on a GUI?
|
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 30 Jul 2012 02:00 PM |
OK,Thanks.
But what does the (mX, mY) mean? |
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
Ayrun
|
  |
| Joined: 27 Jul 2012 |
| Total Posts: 181 |
|
|
| 30 Jul 2012 02:13 PM |
Bump of tracking.
Creepy I know. c; |
|
|
| Report Abuse |
|
|
Dr01d3k4
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 30 Jul 2012 10:18 PM |
| Anyone know how to fix my script? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
|
| 31 Jul 2012 10:04 AM |
No problem.
† KMXD † ~ Evil Duck Overlord, bent on world domination. |
|
|
| Report Abuse |
|
|