Grappling hook for a Pawn simulated by physics

Using a Pawn (Cube) and would like to make a magnetic grappling hook.

Would you know a smart way to implement this?

many thanks!

The best answer to your question depends on whether this will have networked multiplayer or not. If you’re using networking then something that works beautifully for single player will probably not work at all or be really buggy in multiplayer.