Gui Tween Buggy

Hey, I am Trying to tween the size of my buttons for that dynamic feel, its works okay until i move my mouse to fast, im wondering if its cause of Button.MouseLeave event is faulty, or something else

heres the tween

here are the events

image

Thanks.

2 Likes

It is an issue with MouseLeave that has been going on for years.

You can try InputEnded and see if that works better. If not, you can tween all the other buttons to the original size in MouseEnter.

I believe that happens because you are using :TweenSize, instead you should make a tween with TweenService and play it like that, since this happens cause i believe you cant play another :TweenSize until previous one has finished, while if you play a tween with TweenService it overrides previous tween even mid tween. This should work:

local tweenservice = game:GetService("TweenService")

tweenservice:Create(button,TweenInfo.new(.2,Enum.EasingDirection.Out, Enum.EasingStyle.Quad),{Size = Udim2.new(0.134, 0, 0.076, 0)}):Play()
1 Like

Yep it worked!, thanks for the help

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