What I want to accomplish is making the NPC cycle between points. I looked at the DevHub but the example in there doesn’t seem to work.
Here’s my code:
local pointA = workspace.pointA
local pointB = workspace.pointB
local humanoid = workspace.Dummy.Humanoid
local currentPoint = pointA
local nextPoint = pointB
while true do
print("test", nextPoint.Position)
wait()
humanoid:MoveTo(nextPoint.Position)
humanoid.MoveToFinished:Wait()
local tempPoint = nextPoint
nextPoint = currentPoint
currentPoint = tempPoint
end
The NPC does not move even having an Animate script.
I just noticed that you’re used the dummy from Build Rig/outdated which is not has animator and MoveTo() so that’s why it would’t work as you knows. You can modify/add anything that you had and it will work now.