Rope 2d

Hello I would like to make a 2d rope that we can swing on it, is there a tutorial on how to do this?
THANKS