:MoveTo() not working no errors

wait(1)
local NPC = game.ServerStorage.DummyA 
repeat wait() until NPC.Parent == workspace
print("in workspace")
local pc = NPC.Process

if pc.Value == "Training" then
	print("going to train")
	repeat
		print("moving")
		wait(1)
		NPC.Humanoid:MoveTo(game.Workspace.Base.A.Position)
		NPC.Humanoid.MoveToFinished:Wait()
		wait(1)
		NPC.Humanoid:MoveTo(game.Workspace.Base.B.Position)
		NPC.Humanoid.MoveToFinished:Wait()
		wait(1)
		NPC.Humanoid:MoveTo(game.Workspace.Base.C.Position) 
		NPC.Humanoid.MoveToFinished:Wait()
		wait(1)
		NPC.Humanoid:MoveTo(game.Workspace.Base.D.Position) 
		NPC.Humanoid.MoveToFinished:Wait()
		wait(1)
		NPC.Humanoid:MoveTo(game.Workspace.Base.E.Position)
	until pc.Value ~= "Training"
end

It summons at the part, it just doesn’t move, the part has cancollide set to true but if I set it to false nothing changes. Nothing under the character is anchored.

3 Likes

I’m a little confused here. So you’re saying that whenever you test the game, instead of the NPC walking over to the part, it teleports?

1 Like

It doesn’t move at all, by default its set to spawn at a part.

Does it print everything in your script?

Everything prints. charssssssss

By some chance, I just encountered this problem and was browsing through the forums. Do you have any accessories on your NPC?

I do, it’s a model of a soldier cap, but they are welded to the soldier and are not anchored.

Hm. Since everything prints, I would say that it’s probably the NPC’s fault. Try this:
Playtest it in studio, and while you’re in, select the NPC that is in the workspace from the explorer and watch the blue box around it. If the blue box extends to all the other parts the NPC is supposed to be walking to, that means your NPC is at fault here.
Sorry if this doesn’t make much sense, I’m trying my best to explain.

It doesn’t, it just is stuck there.

So like this?


Ignore the weird camera view.

You know, I’m not really sure. I still think it might be that cap, maybe try removing the cap and see if it works?

1 Like

Does the value change to ‘training?’ Print the value and check what it is in the output window.

It is by default set to training.

1 Like

I deleted it and it did nothing.

Is anything anchored on your NPC, It won’t move if anything is anchored.

3 Likes

NPC.Humanoid:MoveTo(game.Workspace.Base.A.Position)
I feel like in these lines the error might be there.
Is the part called BaseA or Base.A?

1 Like

You might have named the parts wrong, send a picture of their names.

It’s under the Base model named A

Nothing is anchored. charsssss

Can you show us what happened by sending a video

It has to be that error, can you send a screenshot of the parts?