How to prevent the player from jumping when is on a slope

Basically, i’ve tried to lower the max slope but only if i lower to a very low number, the player still can jump and climb the slope anyway

Can i get the angle of the object the player is standing and then disable the jump or there’s a better way to do this?

raycast downwards from where the player is standing, then use the dot product theorem to get the angle between the normal vector of raycast result and the humanoidrootparts upvector. If the angle is greater than x amount then disable their ability to jump.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.