Need help with grappling swing

I’m having trouble creating a grapple with the functionality i desire, any help would be appreciated.

The grapple i have already created allows you to attack to a location and it will pull towards it, if the player starts moving away from the point they slow down.

The trouble I’m having is creating the other functionality i want which is to disable the pull and slow down and stop the player from moving away from the grapple point but allow them to still move towards it. i have seen plenty of swinging mechanics like all the rope swing and spider man projects but they lock you at a set distance away from the location. i want to player to be able to move closer but no further away at any given distance.