As I’m sure you’re already aware. Simply calling Humanoid:MoveTo() or Humanoid:Move() will automatically cause an NPC to face the direction specified as they move.
How would I be able to make an NPC strafe to a given location? By this I mean move toward where I told it to, but constantly be facing a different direction? I understand the AutoRotate feature can be turned off, but in a situation of target tracking, how would I change which direction the NPC is facing, while it’s moving?
The easy way would be to use BodyGyro to keep the NPC facing the correct direction while not interrupting its intended path.
Make sure to have it’s MaxTorque property a little like this: Vector3.new(0,40000,0) where only the Y value has anything greater than 0.
Then, via scripting, change it’s CFrame property (generally hidden) to the angle you desire. Since the other 2 in MaxTorque are at 0, only its left-to-right rotation (the Y-axis) will be affected.
Thanks, that actually helps a lot. I was going to do some scripting solutions to remove X and Z rotation from the system, but that’s a much easier solution.