Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to fix the player keep moving?

For using :MoveTo() with humanoids, if you move a player to a part then teleport the player away, the player keeps walking until the player presses 'W' manually. How can I fix it so the player stops walking automatically when teleported away? (For door opening cutscene purposes)

4 comments

0

You found a rare bug. (get it???) It's a bug that can happen rarely to your character while walking.

0

what

0

Would you mind showing me your script first, so I can help? @thehybrid576

0

it...it is just a simple humanoid:MoveTo(part.Position)

1 answer

You can make it MoveTo() its current position, it will over write the current moveto and stop because it is already there.

2 comments

0

doesn't work, the player just keeps walking straight towards infinity, and i checked the moveto position of the humanoid in-game and it was the position of the HumanoidRootPart in which i set it to walk to

0

prob a bug, idk sorry

This discussion is preserved as it was. New answers, comments, and votes are closed.