Local Multiplayer not working

I am trying to make a 2D platformer shooter game that you play with your friends similar to the game BroForce. I tried using the new input system and all the input is working, the only problem is that it controls all the players in the scene, e.g. I press a button on either device and it moves both players.
If it helps here is a link to my Player script :

The CharacterController I use is from Brackeys here is the link for that too :

You will want to remove the input script from the replicated copy of the player. So depending on the networking system you are using, there are ways to determine whether it’s a local/original gameobject owned by the local player or a remote copy. In the place where you hook into knowing that a copy is being created, you would then destroy your input script on the gameobject.