grappling hook help needed

Okay so, I’ve gotten somewhere but i looked at your setup an I’m not sure how i would go about doing that. I can set a single physics constraint but I’m not sure how i would arrange the system like that, here’s a couple pictures of the code I’m working with.