[C#] Jump on slopes

Hello! I’m making an endless runner game, and i got to the point where i add the jump. Everything seems to be working when jumping on a flat surface, but in my game i have stairs/slopes/ramps , and i want my character to be able to jump while on the slopes for some reason it doens’t want to jump. I’m using a character controller, help would be appreciated. :slight_smile:
Here is the screenshot of the problem:

It may work better if you use a rigid body