Problem controlling modified servos with Sharp proximity sensor

Hello,
This is a two part question:
I’m new to arduino and have no experience with code so please forgive my mistakes. I am trying to control 4 continuous rotation servo motors with an arduino uno and a sharp proximity sensor. So far I have been able to control the motors the way I want, but I have only been able to use the sensor as a switch that kickstarts the motors. The motion I am after is a simple loop that moves the motors, on which pulleys are attached, clockwise and anti-clockwise so that they deform the shape of a cloth that is attached with strings on the pulleys. I realise continuous rotation motors are essentially not real servos but so far I am happy with the way I can control them. My problem is the way the sensor works. At the moment when it detects an object at the set distance it starts the motors but when I remove my hand the loop goes on and repeats itself. What I need is for the sensor to detect an object (e.g. my hand approaching) and that would start the movement (as it happens now) but when I move my hand further away the loop should stop. When I move it back closer I need it to continue from the point it stopped the last time. Is such a thing at all possible with these modified servos?
Also is there a way to save the initial position of the servos and have them return to that position if for any reason the movement is disrupted?

Thank you for taking the time to rad this and any help would be greatly appreciated.

Here is the code I have so far:

#include <Servo.h>

Servo myservo9;
Servo myservo8;
Servo myservo7;
Servo myservo6;

int x;

void setup()
{
myservo9.attach(9);
myservo8.attach(8);
myservo7.attach(7);
myservo6.attach(6);
}

void loop()
{
x = analogRead(0);
while (x > 600) {

myservo9.write(83);
myservo8.write(83);
myservo7.write(97);
myservo6.write(97);
delay(11+500);
myservo9.write(90);
myservo8.write(90);
myservo7.write(90);
myservo6.write(90);
delay(3000);
myservo9.write(97);
myservo8.write(97);
myservo7.write(83);
myservo6.write(83);
delay(8000);
myservo9.write(90);
myservo8.write(90);
myservo7.write(90);
myservo6.write(90);
delay(3000);
}
}