[Solved] Objects moving with mouse look script

I have the player and a CCTV camera using the muse look script as the user can swap between them. The problem is I am wanting to make it so that the CCTV camera does not move when I am using the player. I understand that it will be some sort of enable = false but i can’t rack my brain to think exactly how it is done.



I have worked it out so I will answer incase someone needs this in the future. I needed to fully link the address for the script on the object i was after.

Var CCTV: GameObject;

CCTV.GetComponent(nameofscript).enabled = true