Hello awesomejoker248674,
Question:
So You want to start another tween in the middle of another tween when an action is carried out? So for example, when you hover over a button, you want a tween to play, but when you remove your mouse, you want another tween to play.
Solution:
What you are looking for is Override ( which can be found here ) It's a bool value.
In my place, I have it so when you put your mouse over a text button, it will get slightly longer, and when you move your mouse off it, it will decrease in size.
Code:
01 | local button = script.Parent |
03 | button.MouseEnter:Connect( function () |
05 | button.BackgroundTransparency = i |
07 | button:TweenSize(UDim 2. new( 0 , 220 , 0 , 50 ), "In" , "Linear" , 0.2 , true ) |
12 | button.MouseLeave:Connect( function () |
14 | button.BackgroundTransparency = i |
16 | button:TweenSize(UDim 2. new( 0 , 200 , 0 , 50 ), "Out" , "Linear" , 0.2 , true ) |
I hope this helped, If it did, put [SOLVED] in the title or accept an Answer!