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

How do i fix "MoveToFinished" problem about stuck?

Npc:MoveTo(Place1.Position)
Character:MoveTo(Place2.Position)
Npc.MoveToFinished:wait()
Character.MoveToFinished:wait()

In this Codes, if the Npc MoveToFinished first. it won't get any problem.
However, IF the Character MoveToFinished first. if will stuck at:

Character.MoveToFinished:wait()

Yes i do checked. It actually stuck in here.
Any ways fix?

1 answer

✓ Accepted answer

You may add this:

Npc:MoveTo(Place1.Position)
Character:MoveTo(Place2.Position)
Npc.MoveToFinished:wait()
Character:MoveTo(Place2.Position) -- i added this.
Character.MoveToFinished:wait()

If CharacterMoveToFinished first, let it re-detect again.
I'm think it's roblox's API problem :/ :ThinkingFace:
Hope i'm helped!

1 comment

0

Ooh this actually helped! Thanks man.

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