2 servos (or any functions) operating simultaneously?

I think the routine is really close to doing what I want

What routine would that be?