I want an enemy to face the direction in which they are moving while chasing the player.
I can’t get the enemy to face the direction of movement, I’m using AlignPosition to move the enemy.
I’ve tried setting the enemy’s CFrame to face the player, both with CFrame.new and CFrame.LookAt, but both mess with movement. I’ve also tried to use bodyGyros, which didn’t work. I’ve searched the devforums but have been unsuccessful.
CFrame is the way to go, and probably use RenderStepped or something, but if it’s messing with movement you are probably changing the position aswell, but you only need to change the rotation
Yeah, now that I think about it, I probably am editing the position of the character, not just the orientation. But is this method going to cause lag if there are over 200 npcs firing this about every 0.4 seconds or sooner? I’m just sort of hoping I can use something like AlignOrientation to align the x and z axis of the character to the direction of movement without firing an event too often, like with AlignPosition.
So I figured out how to make the humanoid root part face a part using IKControl, but now I have to figure out how to make it face the direction of movement without causing a ton of lag. Any ideas?