Camera rotation

So this may be a dumb question(I’m a noob) but in my project I am trying to make it so you can control the camera of enemies. I’ve already made the camera hopping thing but since I’m still possessing the original character(I want to make it so you can still control the original character), I linked the code I tried but did not work. Any Help would be immensely appreciated.