Is there a way to give the NPC his special spawn location and when the game starts move him to a specific one?

So i’m trying to make an NPC appear in a special position and move to a specific point, im using the MoveToPoint function on the Humanoid but it doesn’t work, can anyone help? I also have a SpawnLocation, that’s where my player spawns, and the NPC spawns with him.

2 Likes

To let the humanoid walk to a point the function is MoveTo(position)

Doesn’t MoveToPoint do this? I’ll try MoveTo!

Hey, it did not work :(, I don’t know why…

Is the HumanoidRootPart unanchored?

What’s up! I just realised, I’ve watched a tutorial where it says how to do it! Basically you use the “Move To” function and instead of a Vector 3 you use a position of a different part! Thanks for being here for me though)

1 Like

Just note that this does not include any pathfinding, and the NPC will get stuck on things. It’s quite a bit more complex, but you can find a guide for it here.

1 Like

There’s no obstacles so my NPC shouldn’t. Thanks for mentioning though!)