I’ve seen many people complaining about the unreliability of the “.MouseLeave”.
So, I was trying to do that, when you hover on a frame with the mouse, it gets bigger, and when you stop hovering it, it returns to the “normal size”.
When I move the mouse very slowly it works, but when I move it a little bit faster it just stop working.
Here’s a GIF showing the issue:
https://gyazo.com/ea04f28499758c537da8175046b7292e
Is there any way to fix it?
Here’s the simple script I used:
local frame = script.Parent.Parent
local btn = script.Parent
btn.MouseEnter:Connect(function()
frame:TweenSize(UDim2.new(0.42, 0, 0.48, 0), "Out", "Quint", 0.5)
end)
btn.MouseLeave:Connect(function()
frame:TweenSize(UDim2.new(0.405, 0, 0.456, 0), "Out", "Quint", 0.5)
end)
Thanks in advance!