Rotating a camera aroud his x axis

Hello guys,

I am working on a game a I have made a CCTV camera with a alarm system attached. But i want to rotate the camera so that players can sneak past a camera? I’m starting with code, so ive got almost zero experience. Can someone help me?

Thanks in advance,


I can write this code for you, but that way you will never learn how to code.
To get started you should probably watch these videos about scripting:

Learning to program is not easy, but you can only go that far by copy/pasting other peoples code into your project.