The code works the same way as a makey makey block. Since a makey makey block can be activated anytime, the code does the same thing only when the custom block is activated, which can be useful in some projects.
All: @anson1106