PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

StatusAdded

The StatusAdded event fires when a status is added to the Humanoid.

Parameters

Name Type Default Description

Code Samples


Humanoid.StatusAdded

Humanoid = game.Players.LocalPlayer.Character.Humanoid

Humanoid.StatusAdded:Connect(function(status)
    if status == Enum.Status.Poison then
        print "The humanoid is now poisoned!"
    elseif status == Enum.Status.Confusion then
        print "The humanoid is now confused!"
    end
end)

humanoid:AddStatus( Enum.Status.Poison ) --> The humanoid is now poisoned!