I literally have no idea how half of this works. I took this https://scratch.mit.edu/projects/774918332/ amazing project which got featured recently and just added a colour change and shape feature to it. It does nothing else, you just watch it twirl. Enjoy!