Humanoid:MoveTo Finishing Immediately?

So I’m making a cutscene for my game, and I’m moving the player to a part using :MoveTo() on the client. Whenever I run the MoveTo, the MoveToFinished is immediately triggered, but doing some prints, you can clearly see that the player’s character does not move at all.

Any idea as to why this is happening?

Output:


Second line is the distance from the player to the part.

The part that the Humanoid will move to is Anchored and CanCollide is checked off.

Can I see the line where you use :MoveTo()?

	char.Humanoid:MoveTo(workspace.Hideout.movementParts.playerOne.Position, workspace.Hideout.movementParts.playerOne)
	char.Humanoid.MoveToFinished:Connect(function() print("Move To Finished") print(math.abs((char.PrimaryPart.Position - workspace.Hideout.movementParts.playerOne.Position).Magnitude)) task.wait() end)

Second line is mostly debugging

Instead of connecting a function, Maybe try waiting until it finishes. Something like this:

Humanoid.MoveToFinished:Wait()
--rest of your code here

It works, but inconcistently. It works sometimes, and even when it does, there seems to be a delay between when the MoveTo is called and when the character actually starts moving.

Nevermind, the model was running into a table…

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.