StatusRemoved (Event)

From Legacy Roblox Wiki
Revision as of 11:48, 29 January 2011 by >Camoy
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
StatusRemoved ( Status removed status )
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!