Client-sided npc not working

I have an npc which I want to walk to a certain destination on the client as a game intro type situation. A localscript creates the npc and uses the MoveTo function to move the npc, the only issue is that for some reason the npc just teleports. Does anyone know how I can resolve this?

For reference the humanoid’s walkspeed property is set to 16 and I do have the default animate script in the npc which is a localscript.

4 Likes

Would you share code? a simple MoveTo() on humanoid should be working…

1 Like

Here it is, the wait is just for testing purposes.

starterChar.Parent = workspace
starterChar.HumanoidRootPart.CFrame = intro.CharStart.CFrame

wait(10)

--*Player walks in*--
warn("Moving")
starterChar:MoveTo(firePit.Seat.Position)
1 Like

starterChar.Humanoid:MoveTo(firePit.Seat.Position), you’re using the model MoveTo() function which teleports, you want the humanoid MoveTo() function like Wingboy0 said.

1 Like

Oh gosh that’s so embarassing, what a dumb typo. Thanks for noticing my silly error :slight_smile:

3 Likes

No problem, if you want to take npc movements to the next level you might also find this useful:

It basically splits up the script you have into smaller parts so NPC’s can walk around obstacles. Might be cool to explore.

Anyway best of luck on your game!

Thank you, I did end up using pathfinding for this!