How to get a cable to lock/stick to a movable mesh?

So I’ve been trying to create a grappling hook using the cable component and i seemed to be able to get it to work but it doesnt “stick” to a mesh that is moving

example - YouTube

Does anyone have any ideas?

Create a Physics Constraint joint, and attach a socket on your target actor to a socket on your rope actor. Set the constraint to lock translation x/y/z but allow rotation.