All a sine or cosine wave is, is the X or Y rotation of a circle. This is one of my most popular project for some reason ¯\_(ツ)_/¯
Thx to https://scratch.mit.edu/discuss/youtube/snHKEpCv0Hk for explaining a lot of stuff