How to go about making a rope to swing on that gets launched from your position?

Like the title says, I am trying to create a rope that you can swing on from your position when you are holding the spacebar, and then when you stop holding it I want it to disappear. I’ve never used hinged joints with unity and I believe that is what I should be using. Thank you!

Look into this:

don't panic it's just 30 min long. The other 30 min he is answering stream questions.

For your spacebar or tap or whatever input you want to use, I suggest getting a boolean Input pressed (to connect your player to the rope) and an if statement which increments a counter for your active rope when you let go your inputkey.