I have this script that tweens the textbutton's size to look like it expanded:
script.Parent.MouseEnter:Connect(function()
script.Parent:TweenSize(UDim2.new(0,250,0,100),"Out", "Bounce")
end)
script.Parent.MouseLeave:Connect(function()
script.Parent:TweenSize(UDim2.new(0,200,0,50),"Out", "Bounce")
end)
The problem is, if the mouse leaves before the MouseEnter event finishes, the textbutton remains expanded, even though the mouse left. So I thought I should check if a tween was finished or not, but I don't know what function does that.

1 comment
Yes, this worked! Thank you!