I need to get the guns on my ship to spin, the whole ship is welded together I can rotate the guns using the roblox dev command bar.
workspace["USS Ranger Smells"].Gun3.Rotation.Orientation = Vector3.new(0,50,0)
However the same code in a script just doesn’t move the guns, no error and no movement I know the script gets that far as I have print statements above and below. I tried editing the CFrames of the weld to make the gun spin.
script.Parent.Gun3.Rotation.Weld.C0 = ( script.Parent.Gun3.Rotation.CFrame ):inverse()
script.Parent.Gun3.Rotation.Weld.C1 = ( script.Parent.Gun3.Rotation.CFrame * CFrame.Angles(0,math.rad(x),0)):inverse()
Which kind of worked but was very jerky any solutions?
Thanks in advanced,
– Gerald