The pulley system

Hello, I’m making a puzzle platformer game, and I was planning to add the pulley platforms for some puzzle gimmick. But it was kinda hard to implement the system because I’m not experienced much in game making. I tried to implement it with platform getting up and down depending on collision detection onto it, but it’s getting too complex and ineffective. So is there any other ways to implement it? It’s similar to the pulley system in Fire boy and Water girl game.