How do I Change the MoveTo() Timeout?
I'm using the MoveTo()
function on a humanoid to move it on a path, from one point to another along the path. However the timeout frequently makes the humanoid move on to the next point instead of going where it's supposed to. Here's my code:
01 | Spawned.Humanoid:MoveTo(d 1. Position) |
02 | Spawned.Humanoid.MoveToFinished:wait() |
03 | Spawned.Humanoid:MoveTo(d 2. Position) |
04 | Spawned.Humanoid.MoveToFinished:wait() |
05 | Spawned.Humanoid:MoveTo(d 3. Position) |
06 | Spawned.Humanoid.MoveToFinished:wait() |
07 | Spawned.Humanoid:MoveTo(d 4. Position) |
08 | Spawned.Humanoid.MoveToFinished:wait() |
09 | Spawned.Humanoid:MoveTo(d 5. Position) |
10 | Spawned.Humanoid.MoveToFinished:wait() |
11 | Spawned.Humanoid:MoveTo(d 6. Position) |
12 | Spawned.Humanoid.MoveToFinished:wait() |
13 | Spawned.Humanoid:MoveTo(d 7. Position) |
14 | Spawned.Humanoid.MoveToFinished:wait() |
Spawned is the variable for the rig, and I established d1-d7 as variables as well. When this is run the default timeout of 8 seconds causes the humanoid to go to the next spot before it has gone to the current one, therefore not completing the path as it should. Is there a way to change the timeout, and if there isn't how do I make it work correctly? I am very new to this function, so I apologize if this is a dumb question. Thank you for reading!