Using First Person Controller with networking causing problems

So when there’s only one guy connected and using a FPS controller it works fine, but if another one connects, the control each others controllers / players. What’s causing this and how can I fix it? I’m new to networking ,thanks in advance!

You need to limit the controls to the local instance of the FPC, then update the position and rotation over the network to connected peers.

In order to do so you should attach a NetworkView to the Player and query its isMine flag to determine if its locally or remotely instantiated. Only apply the player input to the local version.

Then Check out the Unity NetworkView Component, and MonoBehaviour’s OnSerializeNetworkView. The latter has an example of how you can keep position and rotation synced across the network.