So I am trying to make a GUI animation when hovered over it does the "TweenSize" thing and it works. But if the mouse leaves the frame before the first Tween Size is not over yet it doesn't stop and go back but it just completes the TweenSize from before and breaks.
This is how it breaks: https://gyazo.com/fabbf187ca92588e207efdbdecafdd4b
So what I did is I made 2 scripts. One is for opening: Code:
script.Parent.MouseEnter:Connect(function()
script.Parent:TweenSize(UDim2.new(0, 216, 0, 216))
end)
and the other script is for closing: Code:
script.Parent.MouseLeave:Connect(function()
script.Parent:TweenSize(UDim2.new(0, 60, 0, 216))
end)
So what do I have to do for it to stop and then close it? I never make GUI animations so I am still kinda new to the whole Tweening and recognition stuff.

1 comment
Thank you very much for the solution.