I’m making a hover animation for my gui, but if my mouse leave the frame too fast the MouseLeave doesn’t fire. Is there any way I can fix this?
maybe instead make it so that if its not in a certain area, or something it becomes normal?
I would recommend for you to create a module script that handles mouse entering / leaving a UI box
function module.DetectHover(gui,mouseX,mouseY)
local abPos = gui.AbsolutePosition
local abSize = gui.AbsoluteSize
if mouseX > abPos.X and mouseX < abPos.X+abSize.X and mouseY > abPos.Y and mouseY < abPos.Y + abSize.Y then
return true
else
return false
end
Alright, I will be trying this instead.