Is your part anchored? If so, you should only need to set the velocity once, as anchored parts will retain their velocity forever; the while loop is redundant. Additionally, if you are applying the same velocity to multiple parts it may be advantageous to iterate over them with a for loop to set the velocity of each with a single script.