Press the flag twice. Try to make the best TAS you can The starting script is a basic TAS of the first level (it is not optimal at all).
I will make a tutorial on this later.