Roblox Humanoid: Complete Guide On Humanoid Coding [2022]

Roblox Humanoid

Roblox is a platform where you can create multiple games and play with them. Creating this game requires some coding skills which can be easily learned. The complete knowledge of certain elements is required before starting to code a game. In this post, I’ll cover all the necessary coding elements on Humanoid.

Roblox Humanoid is a character object in Roblox that grants you the feature to control it. It has mand different methods to walk, interact, emote, jump, or sit functions. These methods allow you to control the character in your Roblox game. The essential thing in Roblox after learning model development is humanoid development.

What is Roblox Humanoid?

Roblox Humanoid

Roblox Humanoid is an object in Roblox Lua, which can be used to control the character’s movements and actions. These actions can be controlled by calling several functions and changing many attributes. The main reason to develop this object was to make sure you have a single object containing the whole characters. Apart from managing the character, you can trigger some actions on events using the Humanoid object.

Why do we need Roblox Humanoid?

The top reason to why you should learn Roblox Humanoid is that you can manage the characters that enter your game. Otherwise, without custom characters, the game will be boring without any fun. Also, you can customize the character’s appearance and create an in-game shop to earn more Robux from the game.

Attributes of Roblox Humanoid

Attributes are the object values or some customizable definitions. These attributes are very helpful to switch many values and change the states easily. For example, you want to disable the jump feature in your character, then you can easily do it by calling Jump to False. All of the attributes of Roblox Humanoid object are listed below –


Datatype – bool
Explanation – An option to switch between the character jump on hitting an obstacle. If switched to false, the character will now jump on collision.


Datatype – bool
Explanation – AutoRotate will set the camera automatically to the direction of movement. This can be used in FPS games.


Datatype – bool
Explanation – This will scale the camera view in restricted areas. If there is less space available for the camera, it will scale the capture immediately.


Datatype – bool
Explanation – This will decide whether the Character’s bones will be destroyed upon death.


Datatype – Vector3
Explanation – This is an option to place your camera with respect to your player. You can create a Vector direction in to place your camera around your player.


Datatype – HumanoidCollisionType
Explanation – Select the collision types for your character. There are two types of collisions, namely, inner and outer.

Humanoid 2


Datatype – HumanoidDisplayDistanceType
Explanation – This will determine how your name and health bar will be displayed on the screen.


Datatype – string
Explanation – This will set a name for the corresponding Roblox Humanoid. This name is displayed on top of the Humanoid.


Datatype – Material
Explanation – This will set the material below the Humanoid. Currently, there are more than 20 materials available in this object.


Datatype – float
Explanation – This will return you a number of Humanoid’s health from 0 to its max health range.


Datatype – float
Explanation – This can be used to change the distance at which your Roblox Humanoid can see other humanoid’s health.


Datatype – HumanoidHealthDisplayType
Explanation – Determines how the health bar should be displayed.


Datatype – float
Explanation – This will determine the distance between the ground and the RootPart of your Humanoid.


Datatype – bool
Explanation – Used to determine if the Humanoid is jumping or standing. You can change its value to True to make your Humanoid jump.


Datatype – float
Explanation – You can decide the jump height your Roblox Humanoid will jump. Many jump simulators increase this value to make a large jumping game.


Datatype – float
Explanation – This will determine how much force your Humanoid will jump.


Datatype – float
Explanation – You can set a value of the maximum value of your Humanoid health. This is used widely in RPG games where multiple humanoids of different health are spawned.


Datatype – float
Explanation – Roblox Humanoid can walk over most of the inclined areas but if the slope is too high it will slip. Using this attribute you can change the maximum slope at which your humanoid can walk.

humanoid 3


Datatype – Vector3
Explanation – Returns the direction of your humanoid’s movement.


Datatype – float
Explanation – This value determines the distance at which the humanoid can see other humanoid’s name.


Datatype – NameOcclusion
Explanation – This is used to state whether your Roblox Humanoid’s name will be visible through walls or not.


Datatype – bool
Explanation – This is used to check if the player is standing or not.


Datatype – bool
Explanation – Roblox works on a rule that if your humanoid’s neck is broken for any time, your humanoid will die. Using this attribute, you can disable the neck and get rid of this problem.


Datatype – HumanoidRigType
Explanation – This determines whether your humanoid will work on the R6 or R15 model.


Datatype – BasePart
Explanation – This will return with a reference to Humanoid’s Root part. You can use this reference to customize RootPart.


Datatype – BasePart
Explanation – This returns with a reference to the object on which your humanoid is sitting. Suppose you want to decorate a chair as soon as your humanoid sits on it, you can do it using this reference.


Datatype – bool
Explanation – This is used to determine whether your humanoid is sitting or not.


Datatype – Vector3
Explanation – TargetPoint is used to describe the position at which your Humanoid last clicked the tool.


Datatype – bool
Explanation – This is to determine whether your Jump Power can be used or not.


Datatype – float
Explanation – You can set the Humanoid’s walking speed using this attribute.


Datatype – BasePart
Explanation – This will make your humanoid to walk to the reference of the BasePart.


Datatype – Vector3
Explanation – Make your humanoid to walk towards a specific point in the space. If the point is inaccessible, then humanoid will walk to the shortest possible distance from the point.

Functions/Methods of Roblox Humanoid

Functions are the custom set of actions that your Humanoid will do upon calling. The main advantage of this function is that you can easily edit and add many different Humanoid interactions. Following is the list of all functions in Roblox Humanoid –


Returns – Nothing
Explanation – This will add a specific Accessory to your Humanoid.


Returns – Nothing
Explanation – This will change your Humanoid’s look to that of HumanoidDescription passed.


Returns – Nothing
Explanation – This will make a new humanoid character from the attachments of that humanoid.


Returns – Nothing
Explanation – This function will change the state of humanoid to the desired state.


Returns – Nothing
Explanation – This will equip the passed Tool.


Returns – Array
Explanation – This will return all the list of Accessories from your Humanoid.


Returns – Instance
Explanation – This will return the HumanoidDescription object describing the Humanoid’s look.


Returns – BodyPartR15
Explanation – This will return the body parts of your Humanoid in R15 format.


Returns – Limb
Explanation – This will return a Limb reference of your Humanoid.

Roblox Humanoid 4


Returns – Array
Explanation – This will return an array of all AnimationTracks applied to your Humanoid.


Returns – HumanoidStateType
Explanation – This is used to get a state of humanoid actions.


Returns – bool
Explanation – Returns whether the attribute StateEnables is set to true or false.


Returns – Instance
Explanation – This is used to load an animation on Humanoid and returns an AnimationTrack of all its animations.


Returns – Nothing
Explanation – This will move the humanoid to the desired vector direction.


Returns – Nothing
Explanation – This will move the humanoid to the desired vector point.

You can also use the algorithms like pathfinding algorithms, to find the smallest path between two points.


Returns – bool
Explanation – This will play the emote on humanoid. Returns true if played successfully.


Returns – Nothing
Explanation – This removes all the Accessories worn by your Humanoid.


Returns – bool
Explanation – Replace a Humanoid Bory part with the desired body part. Returns true if the replacement is successful.


Returns – Nothing
Explanation – This will set the StateEnabled to the desired bool value.


Returns – Nothing
Explanation – Reduce health by desired float value.


Returns – bool
Explanation – Returns a bool of your Humanoid’s living status.

Events in Roblox Humanoid

Events are the sets of triggers which can be used if you want to do specific actions. Events are asynchronously generated by the objects and you can use this events to do some actions. Suppose you want to throw confetti when the humanoid starts Jumping, then you can use Jumping event to do that. Followings are the list of all events in Roblox Humanoid –

  • AnimationPlayed
  • Climbing
  • Died
  • FallingDown
  • FreeFalling
  • GettingUp
  • Jumping
  • Running
  • Seated
  • Ragdoll
  • Touched
  • Swimming
  • MoveToFinished

Final Words

Coding in Roblox can be pretty challenging especially Humanoid interactions. But if you understand the usage of all the functions, events, and attributes of Roblox Humanoid then it’s a piece of cake for you. You can apply custom accessories and even change the strength of your character by using this Humanoid object. Just make sure that you are passing proper datatypes to functions or else they’ll throw certain errors.

For more details on Roblox objects you can read here.

If you need help on any other Roblox object, then feel free to ask us in the comments.

Notify of
Inline Feedbacks
View all comments