Local Script WalkToPoint

It isn’t letting me do WalkToPoint with a NPC, It is on a a local script. I need to push the npc for it to walk and then it stops. How can I fix it?

Let me see the script first, lacks information

game.Workspace.Donkey.Humanoid.WalkToPoint = game.Workspace.B.Position

Try moving it to a server script. Perhaps there is a caveat to consider or a intended behaviour to notice. You should look into the API reference to get more information.

The thing is that this is a cutscene so I can’t make it into a server script.

Try use Humanoid:MoveTo(position)

2 Likes

You could use PathfindingService.

You could use PathfindingService. This is a good way to handle this if there is complicated movement like jumps or a lot of turns. Personally I would just do Humanoid:MoveTo() or Humanoid:Move() if the humanoid just needs to walk in a straight line for a few studs or whatever but we don’t know how far away workspace.B.Position is and if it requires jumping etc.
Humanoid:Move()
Humanoid:MoveTo()
Pathfinding Service

If the donkey was a player, or if you wanted to move a player, you could do:
Player:Move()

Doesn’t work either. I still need to push it, could it be a problem with the humanoid?

I don’t know why I didn’t get this before but I think I’m going to use remote events so I can do it on the server script.