a delay will not stop or pause a while loop, a while loop continues until its condition is changed to false. it will not stop for anything, and will not allow the game to think about anything else until it is complete. if it doesn’t set its conditional to false at some point during the loop, it will crash your game with an infinite loop error.
putting a delay inside a while loop is an automatic infinite loop, because the delay requires time to pass, and the while loop doesn’t allow time to pass.