So i'm trying to get the wheels of a car to face a part. The wheels have an attachment to it, which turns the wheels vertically. The script works for the front-left wheel but for the front right one it rotates all the way around. How do I make it so that the front right-wheel is still facing to the right?

while wait() do
	script.Parent.CFrame = CFrame.new(script.Parent.Position, game.workspace.Part.Position)
end

3 comments

1

Do both of the wheels have the same orientation? Click on them an look at their orientation property.

0

they dont have the same orientation to begin with, thats what cframe does with the second vector3 argument, it directs the front face of the part towards the vector3 so make sure both wheels are rotated the same at the beginning

0

But that doesn't work. The car's wheels are not right. How do I force it to be in that orientation?