The bodygyro is following the Ai when the player is shooting. However, it gets buggy when the Ai is ontop of a building and the player is on the ground and very close by the Ai. When the player shoot the gyro goes all crazy. I don't why this is happening. I Just want the bodygyro to follow the player side by side and up and down. I don't want it to be all buggy. How do I fix this bug?
--[[Body Gyro Properties: D = 15 MaxTorque:100000000, 100000000, 0 P = 50000]] local rotate = char.HumanoidRootPart:findFirstChild("BodyGyro") rotate.CFrame = CFrame.new(char.UpperTorso.Position, (script.targeting.Value).UpperTorso.Position)