frame.MouseLeave:connect(function() print("EXIT") end)
So basically I got a script that does gui animation whenever the mouse leaves the frame. However 15% of the time, the event does not fire and the animation doesn't happen which leaves with a really annoying gui. If you know how to fix this or know of any better way to do a event when the players mouse leave a gui object please let me know. (Done in a local script)
local Hovered = false frame.MouseEnter:connect(function() if not Hovered then Hovered = true print('Enter') end end) frame.MouseLeave:connect(function() if Hovered then Hovered = false print('Exit') end end)