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

How would I cancel/override a MoveTo?

Say I run a MoveTo, if I want to run another MoveTo while that one is in progress I want it to override the one before with the new MoveTo, but it seems like the original one just overlaps the new one if you try to run any more MoveTos. Is there any way to resolve this?

1 answer

✓ Accepted answer

When you run new :MoveTo() it overrides the old one. You can test it by using :MoveTo() to some random part then after that use :MoveTo(game.Workspace.NPCNAME.HumanoidRootPart.Position) and it will stop it

1 comment

0

Ah, I was under the impression that movetos would only cancel if they timed out or reached the destination, thanks

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