CustomStatusAdded (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
No edit summary
>Camoy
No edit summary
 
(No difference)

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