Rotate for 12 frames?

The title basically says it all. How can I have my MC rotate to 90 degrees, and hold for twelve frames? I tried a while loop.