This script that I made does not move the npc to these parts in the workspace. The script runs through the loop but the npc in workspace does not budge.
while true do wait() script.Parent["v1"].Humanoid:MoveTo(script.Parent.pp.Position) script.Parent["v1"].Humanoid.MoveToFinished:wait() script.Parent["v1"].Humanoid:MoveTo(script.Parent.Part.Position) script.Parent["v1"].Humanoid.MoveToFinished:wait() end
You put the move to part to the script, change it to the part you want it to.
I think the problem is in MoveToFinished, which I think that doesn't exist. Try the following:
while wait() do script.Parent["v1"].Humanoid:MoveTo(script.Parent.pp.Position) game.Workspace.Player.Humanoid.Running:connect(function(speed) if speed < 0 then script.Parent["v1"].Humanoid:MoveTo(script.Parent.Part.Position) end end) end
I believe your problem is that MoveTo is a bit weird... Try instead of using Position using part.CFrame.p, and try using a part instead of a position, or both. Try messing with it, and also, OfcPedroo, MoveToFinished is a valid event of the humanoid.