Hello there!
I am currently trying to make my enemies feel more alive by making them look around the place, as of now all I want to do to make sure I understand the concept is just rotate the head by 90 degrees, sounds simple enough. It wasnt at all ![]()
Little disclaimer Ive never used :Lerp() before, it seems pretty straight forward, but if somehow Im doing something wrong please tell me.
Anyhow as I said I simply just want to rotate the head by 90 degrees, and by rotate the head I actually mean the Neck Motor6d of which can be found inside of the Torso (This is using an R6 rig btw).
Anyhow I cant seem to figure out how to do it at all, I’ve tried this, and Im not sure if Im just dumb, but the head doesnt rotate at all.
There are no errors, the Motor6d and other values all exist, so whats happening?
local TestPoint = CFrame.Angles(0,math.rad(90),0)
local ViewPoint:Motor6D = Enemy.Model:FindFirstChild('Neck', true)
Enemy.Looking = true
ViewPoint.C1:Lerp(TestPoint, 3)
task.spawn(function()
task.wait(3)
Enemy.Looking = false
end)
Thanks in advance!