Rigid body on slope

Im using a rigid body how do i make it so my player when walking up slopes dosent hop off of it when i move against it? How do i make it so the player stays grounded on the slope?

When going up a slope, if your movement code brings the character to a sudden stop when there’s no input then the character will still have some upward velocity and as a result will take off. It’s a common problem that people have when creating controllers with rapid acceleration and deceleration. It’s usually because they’re passing their input vector directly into their character’s velocity.

Thank you this helps alot.