So I understand that body gyro is used to make an unachored part face a certain way. I currently use a code that follows:
local BodyGyro.CFrame = Character.HumanoidRootPart.CFrame
But all it does it face in the face direction as the HumanoidRootPart, how would I change it so I can face towards that part rather than face in the same direction? It’s for a pet simulator game.
you'd use the CFrame.new(vector3 position, vector3 lookat)
constructor to look at an object with BodyGyro
.
BodyGyro.CFrame = CFrame.new(script.Parent.CFrame.Position, Character.HumanoidRootPart.CFrame.Position)