I am making a game, and I have finished player 1. Then when I added another game object for player 2, the controls started messing up. You can move left correctly, and the in air functions work properly, but the crouch does not work and the character moves instantly to the right if i press the right key. I have attached the code to this post. Thanks for any help in advance!!
I have figured out the problem. In the scene I messed up on the scaling of player 2. I fixed that and the problem is fine now.