UI not reacting to MouseLeave event

I am trying to make a UI hover effect, however the object is not reacting to the mouse leaving the object when I move my mouse faster.

Script:

local module = require(script.Parent)
local main = script.Parent.Parent

main.MouseEnter:Connect(function()
	module:HoverStart()
end)

main.MouseLeave:Connect(function()
	module:HoverEnd()
end)

Video:

Any help is appreciated!

Add prints and verify that mouseleave truly does not run. I suspect that the issue is that your mouse is exiting before the animation bringing the card up is finished, thus cancelling out any attempts to bring it back down.

2 Likes

May i see the module script? There might just be a problem with the tween, I’ve had a problem like this before. It should be fixable

edit: didn’t mean to reply to you Kizylle

I just replied, (i thought override was enabled on the tween,) turns out it wasn’t… :sweat_smile: I turned it on and the issue is fixed. Thanks for the help!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.