AddCustomStatus (Method)

From Legacy Roblox Wiki
Jump to navigationJump to search
AddCustomStatus( string custom status )
Returns nil
Description: Adds a custom status to the Humanoid. Puts a BoolValue in the Status model, with the string name and sets it to true.
Member of: Humanoid


Example
game.Players.LocalPlayer.Character.Humanoid:SetCustomStatus("Sleeping")
One idea about why you would use this is that you can set what the humanoid is currently doing. For example, let's say the player is on stage 1 of an obstacle course, we can set their status to Stage1 and there's another way of knowing that the humanoid is on stage1.