After reading the button to delay the execution without stopping action before a

Thank you, it seems like this is the solution but I do not figure out how to adapt it to my code I spent a lot of hours looking for it and probing codes that my head hurts if you could help me somehow to fit in my code would be very grateful