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

What is needed to make a Non-Playable Character walk?

Asked by
RedCombee 585 Moderation Voter
10 years ago

In my game, I have a model that I copied from my player by changing the Archivable value to true, then copy-pasting. When I run a script with the MoveTo function, the NPC doesn't go anywhere. I want the NPC to walk to a point, so I used:

NPC.Humanoid:MoveTo(game.Workspace.WalkToPlatform.Position,game.Workspace.WalkToPlatform)

I receive no errors, but the NPC doesn't move. None of his parts are anchored, just to get that out of the way.

1 answer

Log in to vote
0
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
10 years ago

This works fine when I test it.

It's possible that one of the NPC's legs is being attached to the group because it has inlets, welds, etc. Make sure the bottom surface is smooth. It's also possible that your script is disabled. It's also possible that your script won't run because of its parent, like a LocalScript in workspace or a server Script in PlayerGui.

Setting the WalkToPoint should work as well, but using MoveTo() is fine.

Ad

Answer this question