Using millis() and if statement to run ultrasonic sensor and servo motors

Servos make the robot walk. I need to change the positions.