Trying to build a walking, rotating cube, but it just slides

I hope your realize yourself that the code you posted is a mess. Thats exactly why code tags were invented. So please use them (edit your post).

Since your code is hard to read I just gave it a quick look. But in Update you start the coroutine every frame. I doubt that is inteded.

1 Like