MouseLeave (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>SoulStealer9875
No edit summary
>MrNicNac
Don't use direct objects. Just use a base object.
Line 11: Line 11:
   print("Mouse has left GUI")
   print("Mouse has left GUI")
end
end
Text/ImageButton.MouseLeave:connect(leaving)
GUI.MouseLeave:connect(leaving)
</pre>}}
</pre>}}

Revision as of 17:22, 9 July 2011

MouseLeave ( )
Description Fired when a mouse "leaves" or moves off of a GUI Object. Property of TextButton and ImageButton.
Member of: GuiObject
Example
local function leaving()
  print("Mouse has left GUI")
end
GUI.MouseLeave:connect(leaving)