Help with vertex shader

Hello, I’m trying to implement this to the game I’m working on but I just want the mesh to turn sideways. I tried changing it myself but this code doesn’t make any sense to me. The other problem is that it is making my material turn whitish. How can I solve these problems?

Thanks for your time