Changing to a Static Camera

This is a practice camera. In the game lobby, I created a corridor by adding a block by the wall with a gap. Here I placed a static camera and a trigger box, so that when the player walks through the corridor, the view changes to the static camera that is placed above and on the corner like a cctv camera.

This is the code I used to link the camera to the trigger box.