Thanks to @mcl66 for the ball code go to my other projects I made while trying to make a frequency generator https://scratch.mit.edu/projects/747642366/ https://scratch.mit.edu/projects/747643336/