unet and finding a componenet in local player?

Okay, so this might seem like a silly question but i have only ever really worked on doing single player games and decided to dive in to Unet but i am so use to using methods such as

PlayerController player = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerController>();

To gain the components from the player but this method doesn’t work due to there being multi-players being spawned in to the scene. How do you find and get components from the player prefab on the local client is basically what i am asking. I feel silly for having to ask this but been googling for awhile now and can’t find any straight answers on the matter.

Unity Learn ?

Thanks ^.- figured it out i can just set the transform of the player as a target variable from the playersetup if its a local player.

if (!isLocalPlayer)
  {
}
{
Camera.main.gameObject.GetComponent<CameraFollow>().target = this.transform;
}

and another way

Player localPlayer = new List<Player>(GameObject.FindObjectsOfType<Player>()).Find(player => player.isLocalPlayer);
  if (localPlayer.teamIndex >= 3)