Running (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
Fixed args and added example
>Camoy
No edit summary
Line 1: Line 1:
{|
<onlyinclude>{{Event
|<onlyinclude>{{Event|name = Running
|name = Running
|arguments = [[Float]]] ''speed''
|arguments = [[Float]]] ''speed''
|description = Fired when player is running.
|description = Fired when player is running.
|object = [[Humanoid]]
|object = Humanoid
|}}</onlyinclude>
}}</onlyinclude>
|}
 
{{clear floats}}
 
{{Example|<pre>
{{Example|<pre>
game.Workspace.Player.Humanoid.Running:connect(function()
game.Workspace.Player.Humanoid.Running:connect(function()
Line 11: Line 13:
end)
end)
</pre>}}
</pre>}}
This event is fired when the humanoid's health is changed. Either by losing, or gaining health.

Revision as of 15:45, 29 January 2011

Running ( Float] speed )
Description Fired when player is running.
Member of: Humanoid


Example
game.Workspace.Player.Humanoid.Running:connect(function()
  print("Running")
end)


This event is fired when the humanoid's health is changed. Either by losing, or gaining health.