Any way Similar to MouseEnter and MouseLeave that works better?

Just as in the title, MouseEnter and MouseLeave have many glitchs, is there any other similar way that is better?

I made my own detection system using GetGuiObjectsAtPosition. Basically either listen for the mouse move event or put it in a loop of some sort. Using a tagging system, if the button is in the table returned by GetGuiObjectsAtPosition then apply the code that would run for MouseEnter, otherwise apply the code that would run for MouseLeave. You’d want to implement a debounce so the code won’t re-run while the mouse is over the gui object.

Or if that’s not something you don’t want to make, you could use this

1 Like