How do i make a grappling hook

i am currently trying to make a grappling hook but i dont know how to get the rope to clone an object and stop clonign when it hits something and connect to the player and point towards the object AND be able to swing and pull the player.

the game is called hook and pull


i want it to be able to swign you around not just pull you.