Implementation of a grap hook in UE5 when creating a 2D platformer

May be someone know. Can you tell me how to make a chain or cable effect that dynamically changes in length, for example?