Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to rotate or change position of welded parts?

Hello there,

The question is simple: how to rotate or move welded parts. For instance, I have a car. It's wheels are welded to a specific Base part. How do I make them spin?

Using CFrames (CFrame * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90)) spins the whole model instead of the wheel.

Using Orientation = Vector3.new(X, Y, Z) destroys wheel's Weld.

Any help will be appreciated!

1 answer

weld.C0  = weld.C0 * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90)

1 comment

0

This way the wheel gets teleported away from the car :/ Thanx anyways!

This discussion is preserved as it was. New answers, comments, and votes are closed.