generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Detecting if someone has stopped running?

Previous Thread :: Next Thread 
GhoulishWorker is not online. GhoulishWorker
Joined: 20 Dec 2013
Total Posts: 3
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 is not online. 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
GhoulishWorker is not online. GhoulishWorker
Joined: 20 Dec 2013
Total Posts: 3
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 is not online. 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
GhoulishWorker is not online. GhoulishWorker
Joined: 20 Dec 2013
Total Posts: 3
23 Mar 2014 08:52 PM
Oh, I get it now! Thank you so much.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image