He spin
Code taken from shhhcoder's 3d train project: https://scratch.mit.edu/projects/317618182/ Pretty much all credit goes to them.