Platformer Character Running up slops rather than stopping

So I want to make a fan game of sonic, he obviously runs up slopes to the point of 360* degree angles
I’m not sure how to make my character stick onto walls like rather than immediately stop at a angled piece