Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you make the NPC walk backwards?

Asked by 5 years ago

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?

0
we're not humanoid helpers User#19524 175 — 5y
0
its scriptable fusionFSJAL 33 — 5y
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. gullet 471 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

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.
0
i need the NPC to walk backwards away from the zombie NPC while the NPC faces towards the zombie fusionFSJAL 33 — 5y
0
then change the Vector3.new(0,0,0) to workspace.Zombie.Position Pumpk1n52 22 — 5y
Ad

Answer this question