CustomStatusRemoved (Event)

From Legacy Roblox Wiki
Revision as of 20:08, 31 December 2010 by >Camoy
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
CustomStatusRemoved ( String status )
Description Fired when a status is removed from the Humanoid via the RemoveCustomStatus Method.
Member of: Humanoid


Example
humanoid = game.Players.LocalPlayer.Character.Humanoid

humanoid:AddCustomStatus( "Sleep" ) -- We must make sure the status is there, right?

function onCustomStatusRemoved( status )
   print("The humanoid is no longer " .. status .. "ing")
end

humanoid.CustomStatusRemoved:connect( onCustomStatusRemoved )

humanoid:RemoveCustomStatus( "Sleep" ) --> The humanoid is no longer sleeping