How to make a 2D character stop sliding?

I have shut off sliding in my character motor script, but my character keeps sliding after moving. How do I stop it?

Change GetAxis on GetAxisRaw

Try changing the physics material, found in the collider component