Click the Green Flag. Press Space to change the scripts of "On" And "Off."
This is a Template that you can remix or use it in your own Projects. If you do make your own Project with these Scripts then please give me Credit. [[10/1/19 EDIT]] I discovered that apparently this same concept is widely throughout computer-programming, mechanical physics, and mathematical Logic-Gates. It's called a "PID Controller". The complex ability to start a Forever Loop and also able to instantly stop the entire function of this so-called "Forever" Loop is a concept that is impossible for the human mind to process, but that's why we invented self-regulated technology. Computer-code can process (or "stop") it immediately, because it works in the 1's and 0's of binary (and, as recently discovered by scientists, it can now be 0 or 1 OR also 2). Mechanical structures can process it semi-instantly, but it's still a lot slower because our macroscopic physics has much more friction than that of the subatomic laws of motion, which is called quantum-physics. And mathematical Logic-Gates are basically the bridge that connects quantum-PID and macro-PID together into an ability to place a "stop" and a "go" anywhere in an infinite timeline of physics in relative fractals of spacetime without the barrier of each singularity from both macro-physics and quantum-physics.