MouseLeave (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>MrNicNac
Don't use direct objects. Just use a base object.
>Legend26
"Property of TextButton and ImageButton.">"Property" > lies
Line 1: Line 1:
{|
<onlyinclude>{{Event|name = MouseLeave
|<onlyinclude>{{Event|name = MouseLeave
|arguments =
|arguments =
|description = Fired when a mouse "leaves" or moves off of a GUI Object. Property of TextButton and ImageButton.
|description = Fired when a mouse "leaves" or moves off of a GUI Object.
|object = GuiObject
|object = GuiObject
|}}
|}}
</onlyinclude>
</onlyinclude>
|}
 
{{clear floats}}
 
{{Example|<pre>
{{Example|<pre>
local function leaving()
function leaving()
   print("Mouse has left GUI")
   print("Mouse has left GUI")
end
end
GUI.MouseLeave:connect(leaving)
GUI.MouseLeave:connect(leaving)
</pre>}}
</pre>}}

Revision as of 04:00, 6 January 2012

MouseLeave ( )
Description Fired when a mouse "leaves" or moves off of a GUI Object.
Member of: GuiObject



Example
function leaving()
  print("Mouse has left GUI")
end
GUI.MouseLeave:connect(leaving)