How can I create grabbing like in Lumber Tycoon 2?

I want to create a grabbing system for all unanchored parts like in Lumber Tycoon 2.

I’ve tried a few methods, but none of them worked, the best I got was the part glitching out of the map.

I’ve recently tried using AlignPositions, but that didn’t work. And I don’t have that code anymore.

I just need an idea of how I could create this type of grabbing.

I think lumber tycoon uses legacy body movers but you can do it with the newer forces as well. A lot of people have tried to make a system like this and usually the problem is they dont limit the grab target position in any way. You should take the players mouse position and limit it to a maximum distance from the character. This can then be the target position used for AlignPosition.