Changed the RotateScript to be independent of frame length.