|
| 23 Mar 2014 08:39 PM |
So, I want to be able to detect if someone has stopped running. Roblox Animations do it, when you stop moving the animations stop. Since Humanoid.Running fires many times I don't see how they accomplished this, anyone explain for me? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 23 Mar 2014 08:46 PM |
Check if they're current speed is about 0
|
|
|
| Report Abuse |
|
|
|
| 23 Mar 2014 08:50 PM |
| Speed, as in WalkSpeed? I'm rather confused on this subject... I see speed in the animation script, but no where is it defined. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 23 Mar 2014 08:51 PM |
Speed is simply the length of the Velocity vector.
local aproxSpeed = math.floor(character.Torso.Velocity.Magnitude) |
|
|
| Report Abuse |
|
|
|
| 23 Mar 2014 08:52 PM |
| Oh, I get it now! Thank you so much. |
|
|
| Report Abuse |
|
|