StatusRemoved (Event): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator page for StatusRemoved |
>Camoy No edit summary |
||
Line 1: | Line 1: | ||
<onlyinclude>{{Event | |||
|name = StatusRemoved | |||
|arguments = [[ | |arguments = [[Status]] ''removed status'' | ||
|description = Fired when an [[ | |description = Fired when an [[Status]] is removed from the [[Humanoid]]. | ||
|object = Humanoid | |object = Humanoid | ||
}}</onlyinclude> | |||
{{clear floats}} | |||
{{Example|<pre> | {{Example|<pre> | ||
humanoid = game.Players.LocalPlayer.Character.Humanoid | humanoid = game.Players.LocalPlayer.Character.Humanoid | ||
Line 24: | Line 26: | ||
</pre>}} | </pre>}} | ||
[[Category:Events]] |
Revision as of 15:48, 29 January 2011
![]() | |
Description | Fired when an Status is removed from the Humanoid. |
---|---|
Member of: | Humanoid |
Example
humanoid = game.Players.LocalPlayer.Character.Humanoid humanoid:AddStatus( Enum.Status.Confusion ) -- to make sure this status actually exists. function onStatusRemoved( status ) if status == Enum.Status.Poison then print "The humanoid has been cured of poison!" elseif status == Enum.Status.Confusion then print "The humanoid has become reoriented!" end end humanoid.StatusRemoved:connect( onStatusRemoved ) humanoid:RemoveStatus( Enum.Status.Confusion ) --> The humanoid has become reoriented!