Weld part position to another without rotation roblox (PLEASE HELP ME)

I just want to weld 2 parts, or just attach them so the first part will follow the 2nd part (position only) when the 2nd part rotates (its a wheel so it will move using angular velocity)

2 Likes

could you explain it better?
you mean you could make a part follow a part with vector3 values

Well, i wanna make a truck, and the way it will move is through wheels, and for wheels to move, they rotate.
I use angular velocity to rotate the wheels, and alone, they move like expected.
But when i attach the truck base to the wheel, it rotates the full truck, like rotates it like a angular velocity inside a model.

1 Like

Did you solve it? I also need to weld part without rotation

1 Like

Bump
I had something similar to this. You can use BallSocketConstraint. It “welds” the part in place but allows it to move freely. Might be a bit odd with cframes.

Add for main part (which you need) “WeldConstrait” and set:

Part0: (yours second part)
Part1: (yours first part)

The ideal way to make a properly simulated vehicle with spinning wheels is to make use of constraints, specifically HingeConstraints with their ActuatorType set to “Motor”. This affixes your wheel to the chassis of your vehicle and keeps it in position while applying an angular rotation force which you can script.

(Tweak MotorMaxTorque and then set AngularVelocity to a positive or negative number to apply angular torque to the wheel)

At the top of your studio under the Model tab, expand the Constraints tab by pressing the arrow. Select Hinge, and this will enter you into the Hinge creation mode.

Click on the centre of the inner side of the wheel, then click the point on the chassis where the wheel will affix to. This will automatically create an attachment in both parts with a HingeConstraint. The first part that you click will parent the HingeConstraint.

It’s good to create it this way, as the attachments will automatically be given appropriate CFrame orientations - they need to be compatible so the parts are welded together with correct rotation otherwise they will face the wrong way.

You’ll want your wheel to be placed so that the attachments are in the exact same location (as you can see at the end of the previous mp4 when run mode is triggered the wheel immediately flings over to the chassis so they are connected), so move them close together and check.

Alternate suggestion for connecting

One way to ensure that the HingeConstraint attachments are perfectly aligned is to pre-place the wheel so it is flush with the chassis, then move your camera inside the chassis/wheel to place them inside. It’s a bit awkward but it works well for me. Hold [Shift] to slow down studio’s viewport camera speed.

1 Like