you would just put it all in the loop, so it will all keep going unless you tell it to stop, so the loop if you didn't know makes everything continue without stopping, an example would be like lets say you have a code that moves an item down on the screen or just randomly around, then you would put it in the loop and it would always go, also you can put an if statement to stop it, heres an example