c# set main camera to player (multiplayer)

Camera.main.GetComponent(cameraController).target = transform;

Keeps giving me: expression denotes a type… (Error CS0119)

Here GetComponent() expect either a string or a type parameter. You need to use GetComponent("CameraController"), GetComponent(typeof(CameraController)), or even better GetComponent< CameraController >(). Note that you will also need to cast the result, except for the last one.