Weld not working with MeshPart

I’m trying to make a tank turret rotate by using a part inside the main tower and welding the barrel to the tower, using the part as a point of centre of gravity to rotate, the barrel, tower and part are all welded together like so:

I’ve used a script to change the part’s orientation and parented the part to it, but it doesn’t move

while true do
	script.Parent.Orientation = script.Parent.Orientation + Vector3.new(0, 1, 0)
	wait()
end

All of the objects are un-anchored.

Try this:

while true do
script.Parent.CFrame = script.Parent.CFrame * CFrame.Angles(0, math.rad(1),0)
wait()
end

1 Like