How to make a body dragging system like dead rails?

Hello guys!

So I made a grabbing system and I am currently working on making bodies like zombies draggable, but it basically does not work. How for example would I go about grabbing the zombie and the arms and legs like are attached and also move?

Is it suitable to use AlignPosition and AlignOrientation for that or is CFrame lerping a better variant in order to not affect unanchored parts?

A video for reference:

External Media

I would really look forward to your help.

Thanks so much!

If you get the part that the client initiated the drag on, then yes, you apply AlignPosition and AlignOrientation to said part. No need to worry about anything else unless I’m missing something, because roblox physics will deal with the rest of the body moving along.

That is what happens unfortunately,

Bildschirmfoto 2025-03-30 um 18.40.24

If you’re looking for the arms & legs dangling, then just find some R6 ragdolling module or make the ragdolling yourself.

About the video tho, is the code that makes the zombie float client sided or server sided? Is the network owner of the zombie set to the client that’s dragging it? Do you have code in multiple places that make the zombie move simultaneously?

I’m supposing that your code works with a raycast, and from the looks of it, you’re not adding the zombie to the ignore list of the raycast, so the raycast keeps hitting the zombie & moving him closer and closer.

Also, could you please show us the code that does this?

2 Likes

Thanks so much, I tried it again considering your feedback and got it to work.

Thanks so much for your help!

1 Like