unit – Attach an oscillating object to a rolling object?

new to Unity so could do with one hand.

I'm trying to create a platform suspended under a roller that rolls on rails. I've picked up my items and I've gotten here, but I can not cope, how to fix the platform to the roller without the rope that connects them to wind up at gradually.

Is there a way to make sure that only the roll turns but that the attached rope just follows it vertically and horizontally?

A big thank you for any help! 🙂