and i tried to to add an if statement that looked like this:

if(lap == totalLaps){
gotoAndPlay("Scene 2", 1);
}