Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I script dragging physics?

Asked by 6 years ago

Note: This is NOT a request.

So basically I'm trying to get dragging physics like lumber tycoon 2 when a small sphere is welded to the object.

I have it kinda figured out but i get confused around the part with BodyPosition + BodyGyro.

  • I need to make it FE remember that, but I can manage it.

So far I have the part where when you click it checks for a value in the part then clones the dragger (sphere) from replicated storage.

Should the sphere have BodyGyro and BodyPosition in it already?

Also how do I get it to drag along with the mouse?

0
I think you would have to make the Item's CFrame the mouse's cframe. I don't know thefatrat87 18 — 6y
0
i think for it to be fancy, try to use the article about springs, and make it so that your object's CFrame is your mouse's CFrame util you let go greenhamster1 180 — 6y

Answer this question