game:GetService("RunService").RenderStepped:connect(function() -- Flashy animation if SelectedGun == 0 then Selector.Visible = false return false end Selector.Visible = true local TargetSelectorPosition = SelectedGun == 1 and 0 or 70 Selector.Position = UDim2.new(0, Selector.Position.X.Offset + ((TargetSelectorPosition - Selector.Position.X.Offset) / 5), 0, 15) end)
!!?? It should move the selector one 5 of the way closer to it's target each time, but get's stuck at 66 when going from 0 - 70, but always hits 0.
Any ideas?