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.