DontComeCloseRange

Hey guys how do i add a dontComeCloserRange to this.
so it will keep a distance of lets say 30.

transform.position = Vector3.MoveTowards(transform.position, target.position,speed);

Use Vector3.Distance, it will measure the difference between two vector3(or two positions) one for your target one for your other object. If it’s below your threshold, slow the chaser down until they are far enough away to resume normal stalking behavior.