How could i make my deadmans handle turn?

So i’ve been trying to make a train but i want a working deadmans handle. It needs to be drag turnable like what this guy made https://devforum.roblox.com/t/good-way-to-approach-drag-to-open-doors/1225790

I tried this method for my deadmans handle. it worked. it moved. But there was one problem. It was client side. I tried myself making it server side but nothing worked. I cant read its rotation for speed because it was client side. Please help!