Right now, I'm having the model move to a random place on the map and turn a certain orientation, but I can't get it to unachore without falling apart. I have heard of welding but don't know how to do that. Can anyone help me?
Have you heard of Constraints? There are many types of Constraint such as HingeConstraint
(used for doors) and RopeConstraint
(used to connect two Part
s with a rope). The main function of Constraints is to connect two Attachment
s either mechanically or by force.
If you already know what Attachment
s are, you can skip this part. Attachment
s are like Part
s: they have their own position and rotation. The difference is that they have no size, and they don't move on their own, like 0-Dimensional.
An Attachment
should be parented to a BasePart
, and it always glued with the parent. If you create a new Attachment
inside a Part
, it will automatically be positioned to the Part
's position (together with the rotation).
If you already know about these, you can skip this part. Mechanical Constraints act like real-life mechanics such as a door hinge (HingeConstraint
), a pendulum (RopeConstraint
), a joystick (BallSocketConstraint
), and a spring (SpringConstraint
).
Its alternative is the JointInstance
which is like Constraints but it uses BasePart
s instead of Attachment
s. Its main function is to connect Part
s, kind of like joints.
Mover Constraints - from the name itself, it moves Part
s.
Its deprecated alternative is the BodyMover
.
Now that we know what Constraints are, we can finally use WeldConstraint
.
All you got to do is create a WeldConstraint
inside the model per two Part
s, and set Part0
and Part1
to the two Part
s. Watch this video on how to do it and what it does.