Cinemachine Camera is giving trouble

Options

Hello ! 

I am using third person camera using the unity's cinemachine and I have problems.

When I'm alone in the room I have no problem but when a second player joins I have problems:

- When I move the camera of the first player moves the camera of the second player.

- If I move the camera of the second player the camera of the first player moves.


I am instantiating the the player and camera during run time using spawnPlayer script. Everything is working fine if there is one player in the game . As soon as another player joins the camera stops following player.

Here is the code,

Also here is the movement script