Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you make the NPC walk backwards?

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?

3 comments

0

we're not humanoid helpers

0

its scriptable

0

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.

1 answer

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.

2 comments

0

i need the NPC to walk backwards away from the zombie NPC while the NPC faces towards the zombie

0

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.