Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

[SOLVED] How to make code wait until :MoveTo() is finished?

Asked by
XRed03 17
2 years ago
Edited by Leamir 2 years ago

So I am trying to make a code that makes a dummy walk to random positions across the map. I am using a system that involves using a while true do statement. the thing is, while the dummy is walking, another :MoveTo() code interferes. if have tried to use repeat wait() until humanoid.MovedToFinished ('humanoid' is a variable for the dummy's humanoid, if you couldn't guess). Anyhow, that didn't work apparently. I'm stumped. I need the gods of scripting to shine upon me. Help?

0
I might have an Idea. Watch this video I made: https://streamable.com/xlimxz *This should help VipDanT 10 — 2y
0
Oh, it was humanoid.MovedToFinished:Wait(). Thanks A Lot!!! XRed03 17 — 2y

Answer this question