I want to rotate a part with BodyGyro, and be able to change the existing orientation with a new Vector3. For example: BodyGyro.CFrame = CFrame.new(Part.Orientation + Vector3.new)
What I’ve written done so far doesn’t work.
I’ve looked and couldn’t find anything relevant to my issue on the Dev Hub. This is what I have written:
function forwardpitch()
BodyGyro.CFrame = CFrame.new(MainTank.Orientation + Vector3.new(math.rad(0), math.rad(0), math.rad(-0.05)))
end
function backwardpitch()
BodyGyro.CFrame = CFrame.new(MainTank.Orientation + Vector3.new(math.rad(0), math.rad(0), math.rad(0.05)))
end
function leftyaw()
BodyGyro.CFrame = CFrame.new(MainTank.Orientation + Vector3.new(math.rad(0), math.rad(0.05), math.rad(0)))
end
function rightyaw()
BodyGyro.CFrame = CFrame.new(MainTank.Orientation + Vector3.new(math.rad(0), math.rad(-0.05), math.rad(0)))
end
I control the functions with key inputs. In the video, I was pressing WASD, but no result.