Both buttons have the exact same TweenInfo (TweenInfo.new(.7, Enum.EasingStyle.Quint, Enum.EasingDirection.Out)
) yet the right button is super-fast?
Function:
local function switch(button: ImageButton)
if focus ~= button.Name then
if focus == "Right" then
tweenservice:Create(script.Parent.Holder, TweenInfo.new(.7, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {CanvasPosition = Vector2.new(0,0)}):Play()
tweenservice:Create(button, ti, {BackgroundColor3 = Color3.fromHex("#222F79")}):Play()
tweenservice:Create(right, ti, {BackgroundColor3 = Color3.fromHex("#3656FF")}):Play()
focus = "Left"
elseif focus == "Left" then
tweenservice:Create(script.Parent.Holder, TweenInfo.new(.7, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {CanvasPosition = script.Parent.Holder:GetAttribute("end")}):Play()
tweenservice:Create(button, ti, {BackgroundColor3 = Color3.fromHex("#222F79")}):Play()
tweenservice:Create(left, ti, {BackgroundColor3 = Color3.fromHex("#3656FF")}):Play()
focus = "Right"
end
end
end