How would i make a ledge grab

I would like to know how to make a ledge grab system so you can hang on a ledge and move left and right. I’m not asking for any code just how I would go about it.

3 Likes

And how would I find the edge of a part.

1 Like

I’d recommend using raycasts from the character Head & HRP, using LookVector ass the direction. You would need to run the raycasts every heartbeat for it to be reliable. Upon detecting a ledge part (which for simplicity you could just name “Ledge”) anchor the HRP and play a ledge grab animation. You would then need to keybind left and right movement to a
CFrame tween in the relevant direction, as well as capturing another keybind to end the ledge grab (probably using the Jump keybind).

3 Likes

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