I want the character to be oriented with the HumanoidRootPart
directly to a part, however using Orientation
breaks everything, so I have to use CFrame
. But how would I do it?
I think this is what you are looking for
HumanoidRootPart.CFrame = CFrame.LookAt(HumanoidRootPart.CFrame, part.CFrame)
Thanks, this was what I was looking for.
It’s interesting however that many people misspell it. It’s not lookat()
or LookAt()
, it’s lookAt()
. And the parameters need to be Vector3
.
my bad it came from memory aha but you’re right
(HumanoidRootPart.CFrame.Position, Part.CFrame.Position)