Brake Pedal Goes to Floor When Car is Running

a bad brake booster leak or bad booster . when the engine is running , its creating a vacuum and causing the booster to do weird stuff would be my guess