Ok so im using two
BodyGyros to have this arrow turret move:
Here is the code I’m using to control the two axis with gyros to have the turret follow me:
local chris = workspace.Characters:WaitForChild("chrisjd31") local JointGyro = script.Parent.Joint.BodyGyro local TopGyro = script.Parent.Top.BodyGyro local JointOffsetAngle = CFrame.Angles(0,math.rad(180),0) game:GetService("RunService").Heartbeat:Connect(function() JointGyro.CFrame = CFrame.new(script.Parent.Joint.Position, chris.HumanoidRootPart.Position) * JointOffsetAngle TopGyro.CFrame = CFrame.new(script.Parent.Top.Position, chris.HumanoidRootPart.Position) end)
The problem is the lag in it following me (as seen in video). What I really need is to have it stay constantly on me with out any movement lerp/delay.
Problem is that if I lower Damp (D) on the body gyro is overshoots its target and start bouncing back and forth:
How do I get the bodygyros to stay constantly on target?