[SOLVED] Ragdoll drag n Drop code

Can someone make a drag and drop code with ragdoll if it’s possible? I only know coding the UI and animating

I dont think thats possible

You can simulate drag and drop.
On a MouseDown script,

a = ObjectToBeDragged
a.y = mouseY;
a.x = mouseX;

:)

thanks man but its more of a stutter tho
Edit: turns out i need to fill the middle

1 Like

Hello, yes you need to fill it in.
I created a “proper” and better version of the drag for you.
My Project11-7-2021_7-44-04.wick (3.6 KB)

Basically the changed are just the code is on mouseDrag instead of mouseDown.
Also I noticed when the mouse isn’t on the object while dragging even when I switched it to mouseDrag, so I added something to make it so the object will be still dragged. (you will know what I mean when you test it on the wick file.
:)

2 Likes

thanks again