How do I make a security camera- like main menu?

I can’t figure out how to make my camera rotate back and forward for my main menu. I want my main menu to have a background where the camera moves like a security camera but I cannot find a good tutorial that explains it.

you could look into tutorials about the node “timeline” this will help you animate the rotation or position of the camera and repeat that animation