Ever since ROBLOX removed the ability for Humanoids to go backwards by adding a negative number, I'm having trouble making my NPCs walk backwards now
Anyone know how this is done now?
Ever since ROBLOX removed the ability for Humanoids to go backwards by adding a negative number, I'm having trouble making my NPCs walk backwards now
Anyone know how this is done now?
You could add a bodygyro to the NPC. The code would look something like this:
NPC.BodyGyro.CFrame = CFrame.new(NPC.HumanoidRootPart.Position, Vector3.new(0,0,0))
-- the (0,0,0) can be changed to where you want the NPC to face.
i need the NPC to walk backwards away from the zombie NPC while the NPC faces towards the zombie
then change the Vector3.new(0,0,0) to workspace.Zombie.Position
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
we're not humanoid helpers
its scriptable
You can turn off the auto rotation in humanoids if you want to use the target functions. If you need it to rotate you'll need to do that manually through editing it's cframe or using a bodygyro.