Use this in projects with credit to me. Loop mode will run the on/off code repeatedly and be toggled only when the Boolean has turned true. Wait mode runs the on/off code once every time the Boolean has turned true. The toggling Boolean (currently when space bar pressed) can be change do any Boolean to toggle, not just a key.
You don't have to use the on/off custom blocks i just put them there as fillers. Instead just put the on/off scripts just inside the first if/else statement in the block.