Press the up arrow on your keyboard to jump. when in the air press down arrow to double jump. The flip animation should be in the direction of which way you are facing.
Jump code my @MathisAnimations The rest is by me. I only needed about 2 variables and a couple broadcasts to make this.