example of how my script works.
the project containing the script: https://scratch.mit.edu/projects/727906337/