Error in my code help

So how do I write the code without delays? Sorry but I’m kind of new to all this