Seated (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
Fixed args, added example
>Camoy
No edit summary
Line 1: Line 1:
{|
<onlyinclude>{{Event
|<onlyinclude>{{Event|name = Seated
|name = Seated
|arguments = [[Bool]] ''active''
|arguments = [[Bool]] ''active''
|description = Fired after a humanoid sits.
|description = Fired after a humanoid sits.
|object  = [[Humanoid]]
|object  = Humanoid
|}}</onlyinclude>
}}</onlyinclude>
|}
 
{{clear floats}}
 
{{Example|<pre>
{{Example|<pre>
game.Workspace.Player.Humanoid.Seated:connect(function()
game.Workspace.Player.Humanoid.Seated: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

Seated ( Bool active )
Description Fired after a humanoid sits.
Member of: Humanoid


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


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