Making an AI look at a target, smoothly and constantly

Im trying to get a NPC to constantly look at a target smoothly, in this case a player, without CFrame and a constant while loop by using constraints

Problem is i cant find a constraint that only turns a brick to face something, or any other alternatives

Again, CFrame isnt preferable or any other while loops in general

The AlignOrientation has a LookAtPosition that can do this if you’re OK with the NPC only moving a single neck joint. If you want a more sophisticated look-at behavior, where the NPC can turn their neck, torso, etc, as needed to track the target, then you could use an IKControl, which also has Look At functionality, but can solve a chain of joints, rather than just one.

Thanks! i only need them to point in the general direction of the player so this works

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.