How can I make an object rotate infinitely?

I’m glad that worked! =)