|
| 23 Aug 2015 09:44 PM |
I've come across an unusual problem. Is there anyway to detect that a player has finishing doing their MoveTo thing?
For reference: http://wiki.roblox.com/index.php?title=API:Class/Humanoid/MoveTo
In my code the player walks to the set point. Thing is though, it's not exact, so I can't use a statement that fires when the target position and the player's position are one and the same.
Any ideas? |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2015 12:48 PM |
| I'm gonna bump this up again. |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Aug 2015 12:51 PM |
humanoid.MoveToFinished:connect(function(reached) print("Finished walking. " .. (reached and "Reached " or "Did not reach ") .. destination.") end
~Upload code to codepad-dot-org with Lua syntax highlighting to preserve indentation and make it easier to read!~ |
|
|
| Report Abuse |
|
|