How to make a collision in ropes? or do you need to make a rope through the Part?

1:I need to make a rope hold like in Poppy playTime
2:I tried to do it through RopeWeld and RayCast, but it doesn’t work.
3: