Code Bricking Itself

you can try multi threading
example from past code:

void score(void) {
wait (.01, seconds); //stops repeating from holding the button
  top.spin(vex::directionType::fwd, 100, vex::velocityUnits::pct);
  wait(1, seconds);
  top.stop(brake);
  wait(.5, seconds);
  top.spin(vex::directionType::rev, 100, vex::velocityUnits::pct);
  wait(1.1, seconds);
  top.stop(vex::brakeType::brake);
}
void usercontrol(void) {
while(1){
// other code
 if (Controller1.ButtonB.pressing()) {
      thread(score).detach();
    }}}

this lets things run at the same time, user control runs while score runs. this is best for complex pre programed movements. for what you are saying, i think @Hudsonville_Robotics solution should work too

what is funny, is that this was similar to the first topic i created (Having two things run at once) , and my solution is the solution i figured out for that