CustomStatusRemoved (Event)

(Redirected from CustomStatusRemoved)
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