How could I make an NPC look at something using AlignOrientation?

I have attempted this before, but it did not work. I tried using OneAttachment mode for alignorientation, and put inside the NPCs rootpart, and attempted to update the cframe of the alignorientation every now and then. This did not work. I don’t have a coding sample of this, as I have already deleted it a couple of days ago, but; it was something like this:

Align.Responsiveness = 25
Align.MaxTorque =, 0, math.huge)
---lets pretend this was in a loop
AlignOrientation.CFrame = - ObjectToLookAt.CFrame).Unit

any help is appreciated.

I use the following which works reliably:

local rotateCFrame = CFrame.lookAt(npc.HumanoidRootPart.Position,, npc.HumanoidRootPart.Position.Y, ObjectToLookAt.Head.Position.Z))
					local tween = TweenService:Create(npc.HumanoidRootPart, rotateTweenInfo, {CFrame = rotateCFrame})

The addition of the tween makes the rotation nice and smooth