¿como hago que una serie de comandos erte siempre activa?si responden Hoy mejor

Hay una sección en español en este sitio web. 
Si desea publicar aquí, debe publicar en inglés.

https://translate.google.com/

OP asks; "

I want to make that when you give a button the lights are put in one way and then another, but, 
that you can interrupt this process whenever you want.So far I have this: