|
| 03 Oct 2015 10:16 PM |
| I'm making a cutscene script, and i need help with how to make the humanoid move from where the point it is to another place in a certain amount of time. Help plox. |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 03 Oct 2015 10:19 PM |
well, walkspeed is stud per second i think, so it would be (without pathfinding)
find the ditance between two points, and divide it by walkspeed.
In alegbra, you can change the equation around to get the time |
|
|
| Report Abuse |
|
|
|
| 03 Oct 2015 10:20 PM |
http://wiki.roblox.com/index.php?title=API:Class/Humanoid
-The [Guy] |
|
|
| Report Abuse |
|
|
|
| 03 Oct 2015 10:20 PM |
| http://wiki.roblox.com/index.php?title=API:Class/Humanoid/MoveTo |
|
|
| Report Abuse |
|
|
|
| 03 Oct 2015 10:23 PM |
Thx This line works like a charm
humanoid.WalkSpeed = ((walkpos.Position - torso.Position).magnitude) / walkpos:WaitForChild("DelayTime").Value |
|
|
| Report Abuse |
|
|
|
| 03 Oct 2015 10:57 PM |
| You can find good scripts in the tool box, that would've been easier. |
|
|
| Report Abuse |
|
|