CustomStatusAdded (Event): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator CustomStatusAdded |
>Camoy No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude>{{Event|name = CustomStatusAdded | |||
|arguments = [[String]] ''status'' | |arguments = [[String]] ''status'' | ||
|description = Fired when a status is added to the [[Humanoid]] via the [[AddCustomStatus (Method)|AddCustomStatus]] [[Method]]. | |description = Fired when a status is added to the [[Humanoid]] via the [[AddCustomStatus (Method)|AddCustomStatus]] [[Method]]. | ||
|object = Humanoid | |object = Humanoid | ||
}}</onlyinclude> | |||
{{clear floats}} | |||
{{Example|<pre> | {{Example|<pre> | ||
function onCustomStatusAdded( status ) | function onCustomStatusAdded( status ) | ||
Line 16: | Line 17: | ||
humanoid:AddCustomStatus( "Sleep" ) --> The humanoid is now sleeping</pre>}} | humanoid:AddCustomStatus( "Sleep" ) --> The humanoid is now sleeping</pre>}} | ||
[[Category:Events]] |
Latest revision as of 20:07, 31 December 2010
CustomStatusAdded ( String status ) | |
Description | Fired when a status is added to the Humanoid via the AddCustomStatus Method. |
---|---|
Member of: | Humanoid |
Example
function onCustomStatusAdded( status ) print("The humanoid is now " .. status .. "ing") end humanoid = game.Players.LocalPlayer.Character.Humanoid humanoid.CustomStatusAdded:connect( onCustomStatusAdded ) humanoid:AddCustomStatus( "Sleep" ) --> The humanoid is now sleeping