Im making an inventory button and made it tween in size when you hover over it, my issue is, is when you hover over it the animation almost repeats itself
and heres the script
script.Parent.MouseEnter:Connect(function()
script.Parent:TweenSize(UDim2.new(0.248, 0,0.063, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Back,1)
game:GetService('TweenService'):Create(script.Parent.ImageLabel,TweenInfo.new(1,Enum.EasingStyle.Back,Enum.EasingDirection.InOut),{Rotation = 20}):Play()
end)
script.Parent.MouseLeave:Connect(function()
script.Parent:TweenSize(UDim2.new(0.186, 0,0.063, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Back,1)
game:GetService('TweenService'):Create(script.Parent.ImageLabel,TweenInfo.new(1,Enum.EasingStyle.Back,Enum.EasingDirection.InOut),{Rotation = 0}):Play()
end)