Although it worked better than before, if the station is very long, it stopped short of approaching the station.
So I tested the formula as follows.
local Distance = range - ship.radius
In this case, as far as I tested a little, the problems such as stopping and colliding on the way did not occur.