Network Moving Help.

When i connect to my server I controll the other player and the other player controll me Help Please.

The code of player:

function Start () {
                
          if (!networkView.isMine) {
               GetComponent(CharacterController).enabled = false;
          }
		  
		  if (networkView.isMine) {
               GetComponent(CharacterController).enabled = true;
			   }

and the camera:

function Start () {
          if(!networkView.isMine) {
               
               GetComponent(AudioListener).enabled = false;
               
               GetComponent(Camera).enabled = false;
          }
}

There are more components that need to be disabled (if you are using the standard First Person Controller they are Character Motor, FPS Input Controller, Mouse Look & Character Controller). You also need to put “” around the component you are trying to access such as:

GetComponent("CharacterController").enabled = true;