Ledge Climb Bug

I have a ledge climbing system, which detects if you press jump while in freefall while there is the side of a part in front of you.

(I took some of the code for detecting parts from this system I purchased, and don’t fully understand it.)

When there’s a slanted part like this, it bugs out by detecting it as the side of the part, even though it’s the “Top” just slanted. I’m also unsure if it will bug out when there’s a part above you, but I have not tested that.

This is what happens when there’s a slanted part and I press the spacebar while falling onto it.

Basically, I want to make sure that the player can only ledge climb if the side hit by the raycast is the “side” of the part which the player should be able to ledge climb.

Maybe I could check if the part is tilted

Example of a correct ledge climb:

This should be in #help-and-feedback:scripting-support

Edit: Nevermind, I solved it. Thanks.

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