Hello there, i am having trouble with making an NPC look at a character's target head.
But it kinda seems off, this was my method:
local function lookAtTarget(targetHead) -- "targetHead" is the target's head that the npc found.
local neck = killer:FindFirstChild("Neck",true)
if neck then
local headCFrame = CFrame.new(Vector3.new(0,neck.C0.Position.Y,0),targetHead.Position)
neck.C0 = neck.C0:Lerp(headCFrame,.25)
end
end
you might think the lerp is the thing ruining it, but it's really not, I get the same result if i do not lerp.
The NPC's rig type is R6, and so is the target's.
Thank you so much for your time! It would be most appreciated if you could answer!
Thank you, Dexiber
