Xzerizon
|
  |
| Joined: 16 Aug 2011 |
| Total Posts: 2174 |
|
|
| 29 Jan 2013 03:28 PM |
| How do I figure out what the status of a humanoid is when it's just walking around or standing there? |
|
|
| Report Abuse |
|
|
|
| 29 Jan 2013 03:35 PM |
You can't really. The status is used for Roblox gears. You can use Humanoid.Running.
The event returns a number describing the speed the humanoid is traveling. |
|
|
| Report Abuse |
|
|
Xzerizon
|
  |
| Joined: 16 Aug 2011 |
| Total Posts: 2174 |
|
|
| 29 Jan 2013 03:39 PM |
| Alright, thanks. What I'm trying to find is a way to figure out if the humanoid isn't Strafing anymore. So it's impossible? |
|
|
| Report Abuse |
|
|
OwnsomeB
|
  |
| Joined: 13 Apr 2010 |
| Total Posts: 109 |
|
|
| 29 Jan 2013 03:46 PM |
game.Workspace.Player.Humanoid.Running:connect(function(speed) onRunning(speed) end)
game.Workspace.Player.Humanoid.PlatformStanding:connect(function() onPlatformStanding() end)
-- OR --
if game.Workspace.Player.Humanoid.PlatformStand then print "The player is PlatformStanding" end |
|
|
| Report Abuse |
|
|
|
| 29 Jan 2013 03:49 PM |
Humanoid.Strafing
Passes on a boolean describing whether the humanoid is strafing or not I believe. |
|
|
| Report Abuse |
|
|
OwnsomeB
|
  |
| Joined: 13 Apr 2010 |
| Total Posts: 109 |
|
|
| 29 Jan 2013 03:54 PM |
moving = false strafing = false
game.Workspace.Player.Humanoid.Strafing:connect(function() strafing = true end)
game.Workspace.Player.Humanoid.Running:connect(function(speed) if speed > 0 then moving = true else moving = false strafing = false end end)
-- This fails :P |
|
|
| Report Abuse |
|
|