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

How a can I weld 2 parts together but allow them both to rotate freely?

Asked by 7 years ago
Edited 7 years ago

I want to bind a part to the character's torso, but I want that part to be able to rotate on it's own without rotating the character. How can I do it?

0
I don't think you can use a regular weld, but Roblox has "Constraints" now that allow for parts to be connected, like Rope and Hinge Constraints. I haven't used these much, yet. JasonTheOwner 391 — 7y

2 answers

Log in to vote
2
Answered by 7 years ago

I think you are talking about the rotate joint. You can set a position relative to the character, just like a weld, but it can rotate around a pivot.

http://wiki.roblox.com/index.php?title=API:Class/Rotate

1
Sweet! Never used those before. duckwit 1404 — 7y
0
:) User#15029 30 — 7y
Ad
Log in to vote
0
Answered by 7 years ago

You can use a BallSocketConstraint. Using the Create button in the Model tab of Studio, create two different attachments onto two different parts. Then create a Ball in Socket and click on the two attachments to create the BallSocketConstraint. When you run Studio, you will find that the two are joined, but rotating freely - even if both have CanCollide on.

API: http://wiki.roblox.com/index.php?title=API:Class/BallSocketConstraint GIF:https://blog.roblox.com/wp-content/uploads/2016/12/BlogBallSocket.gif

Answer this question