I have this simple tween here where it goes in when the mouse hovers on it, the trouble is, if the mouse leaves before it's finished the first tween, it won't tween out. Can anyone tell me a fix for this please, or a way to set the time?
script.Parent.MouseEnter:Connect(function()
script.Parent:TweenSizeAndPosition(UDim2.new(0.6, 0,0.06, 0),UDim2.new(0.2, 0,0.106, 0))
end)
script.Parent.MouseLeave:Connect(function()
script.Parent:TweenSizeAndPosition(UDim2.new(0.78, 0,0.072, 0),UDim2.new(0.11, 0,0.096, 0))
end)
Thanks!

1 comment
nvm I know how to set the time but how can I prevent the other thing?