How to make a Grappling hook?

Hi I was making a game and I was wondering if anyone might know ow to make a grappling hook and use it. Thanks.

U making a platformer game, cause if so you can use position values like maybe you click on an object, all you have to do it set the characters position to where you clicked (but what do I now, isn’t that what’s google is for. just search up “Grappling hook code in JavaScript”) I’ll see if I can make a project example

platformer engine 2.2.512-8-2022_11-28-52.wick heres one