So when the player mouses over I make the buttons X change by 25 but if my mouse leaves before the button reaches destination it will bug out and I have to mess with it for it to return or fire the MouseLeave
script.Parent.MouseEnter:connect(function() script.Parent:TweenPosition(UDim2.new(0, 25, 0, 125), "InOut", .01, true) end) script.Parent.MouseLeave:connect(function() script.Parent:TweenPosition(UDim2.new(0, 0, 0, 125), "InOut", .01, true) end)
If anyone knows why this happens please explain it to me because it's very annoying
script.Parent.MouseEnter:connect(function() script.Parent:TweenPosition(UDim2.new(0, 25, 0, 125), Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, .01, true) end) script.Parent.MouseLeave:connect(function() script.Parent:TweenPosition(UDim2.new(0, 0, 0, 125), Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, .01, true) end)