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

how to know when soldier MovesTo part?

Asked by 4 years ago

Hello, I have a script here that makes the soldier MoveTo pos1. I want to know when he reaches pos1, so then he can move to pos2. Here is my script:



pos1 = game.Workspace.pos1.Position pos2 = game.Workspace.pos2.Position soldier = game.Workspace.Soldier.Humanoid soldier:MoveTo(pos1) --I want it to know when soldier moves to position 1, and once it is there it will move to the next position soldier:MoveTo(pos2)

Thanks!

0
Use soldier.MoveToFinished:Wait()--will give humanoid time to move to part for 8 seconds. Yuuwa0519 197 — 4y

Answer this question