I was programming an npc movement script of my game but the npc wont move, there are no errors in the output just my script isnt working. The npc is a R15 type model

local humanoid =  script.Parent.Humanoid

while true do
	humanoid:MoveTo(Vector3.new(50,0,0))
	humanoid.MoveToFinished:Wait()
	humanoid:MoveTo(Vector3.new(0,0,0))
	humanoid.MoveToFinished:Wait()
end

7 comments

0

Make sure nothing in the npc model is anchored?

0

oh ok

0

i already anchored it

0

Wait, did you unanchor it or anchor it? If you anchored it, there's your problem.

0

i anchor it

0

Un anchor it

0

ok