Class · inherits Instance
HumanoidDescription
Describes the appearance of a Humanoid character including body parts, accessories, colors, scales, animations, and emotes.
About HumanoidDescription
HumanoidDescription is an object that stores a description of a
Humanoid for R6 and
R15 rigs. It can
be applied in order to set a rig's
scaling, clothing (Shirt, Pants, ShirtGraphic),
Accessories, Animations and
BodyColors.
You can get a HumanoidDescription by using the following functions:
Players.GetHumanoidDescriptionFromUserIdAsync, for an outfit currently being worn by a user on Roblox.Players.GetHumanoidDescriptionFromOutfitIdAsync, for an outfit created by a user on Roblox.- You can create a Humanoid rig model from a HumanoidDescription through
Players.CreateHumanoidModelFromDescriptionAsync.
See also:
- HumanoidDescription System,
for more information on
HumanoidDescription.
Properties 41
AccessoryBlob
: stringNotReplicatedNotScriptableA JSON formatted array of Layered clothing where each table in the entry in the array describes an accessory's AssetId, AccessoryType, Order, and (optionally) Puffiness as key-value pairs.A JSON formatted array of Layered clothing where each table in the entry in the array describes an accessory's AssetId, AccessoryType, Order, and (optionally) Puffiness as key-value pairs. This can be edited in the properties windows for the
HumanoidDescription.To make changes from Luau (which is recommended over editing the JSON directly), use
HumanoidDescription.SetAccessoriesandHumanoidDescription.GetAccessories. These methods can also be enabled to work with rigid accessories by setting IncludeRigidAccessories parameters to true.BackAccessory
: stringNotReplicatedA comma-separated list of asset IDs that will be added asAccessoriesto aHumanoidrig whenapplied, usually those attached to its back (such as capes).BackAccessory is a comma-separated list of asset IDs that determine what accessories should be added when the description is
applied. The list cannot contain duplicates.An error is thrown if you try to apply a new description which shares any assets with the existing description but a different accessory property.
See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. FaceAccessory,FrontAccessory,HairAccessory,HatAccessory,NeckAccessory,ShouldersAccessoryandWaistAccessory, which are similar properties that apply accessories like this one
- HumanoidDescription System,
for more information on
BodyTypeScale
: floatDetermines the factor by which the shape of aHumanoidis interpolated from the standard R15 body shape (0) to a taller and more slender body type (1).BodyTypeScale determines the factor by which the shape of a
Humanoidis interpolated from the standard R15 body shape (0) to a taller and more slender body type (1). Values outside the range of 0 to 1 are clamped. When the description is applied throughHumanoid.ApplyDescriptionAsync, this value maps to a BodyTypeScaleNumberValuewithin theHumanoid.Note that when the value of this property is 0, the
ProportionScaleproperty has no effect.See Also
- HumanoidDescription System,
for more information on
HumanoidDescription. ProportionScale, which also affects rig proportions when this property is non-zeroWidthScale,HeightScaleandDepthScale, which provide finer control over the dimensions of a rigHeadScale, which provides specific control over the scale of the rig's head
- HumanoidDescription System,
for more information on
ClimbAnimation
: int64When this description isappliedto aHumanoid, this determines theAnimation.AnimationIdto play when itsstateisClimbing.When this description is
appliedto aHumanoid, ClimbAnimation determines theAnimation.AnimationIdto play when itsstateisClimbing.See also:
FallAnimation,IdleAnimation,JumpAnimation,RunAnimation,SwimAnimationandWalkAnimation, which are similar properties that determine animations to play on the rig
DepthScale
: floatDetermines by what factor the depth (back-to-front distance) of aHumanoidis scaled.DepthScale determines by what factor the depth (back-to-front distance) of a
Humanoidis scaled, as well as all accessories not attached to its head. When the description is applied throughHumanoid.ApplyDescriptionAsync, this value maps to a BodyDepthScaleNumberValuewithin the Humanoid.See Also
- HumanoidDescription System,
for more information on
HumanoidDescription. BodyTypeScaleandProportionScale, which can provide more realistic rig proportionsWidthScaleandHeightScale
- HumanoidDescription System,
for more information on
Face
: int64Determines the asset ID of the Face to be applied to theHumanoid.Face determines the asset ID of the Face to be
appliedto aHumanoid. The type of the asset ID provided must be for a Face type asset and not a Decal or Image type asset.The actual face texture is rendered using a
Decalin the Head named "face" or "Face".See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. GraphicTShirt,ShirtandPants, which also apply textures to a rigHead, which can change the mesh of the headFaceAccessory, which can apply one or moreAccessoryobjects to the face
- HumanoidDescription System,
for more information on
FaceAccessory
: stringNotReplicatedA comma-separated list of asset IDs that will be added asAccessoriesto aHumanoidrig whenapplied, usually those attached to the front of its face (such as glasses).FaceAccessory is a comma-separated list of asset IDs that determine what accessories should be added when the description is
applied, usually those attached to the front of its face (such as glasses). The list does not contain duplicates.An error is thrown if you try to apply a new description which shares any assets with the existing description but a different accessory property.
See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. BackAccessory,FrontAccessory,HairAccessory,HatAccessory,NeckAccessory,ShouldersAccessoryandWaistAccessory, which are similar properties that apply accessories like this oneFace, a property that determines what Face texture is used on the head
- HumanoidDescription System,
for more information on
FallAnimation
: int64When this description isappliedto aHumanoid, this determines theAnimation.AnimationIdto play when itsstateisFreefall.When this description is
appliedto aHumanoid, FallAnimation determines theAnimation.AnimationIdto play when itsstateisFreefall.See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. ClimbAnimation,IdleAnimation,JumpAnimation,RunAnimation,SwimAnimationandWalkAnimation, which are similar properties that determine animations to play on the rig
- HumanoidDescription System,
for more information on
FrontAccessory
: stringNotReplicatedA comma-separated list of asset IDs that will be added asAccessoriesto aHumanoidrig whenapplied, usually those attached to front of its torso (such as medals or ties).FrontAccessory is a comma-separated list of asset IDs that determine what accessories should be added when the description is
applied, usually those attached to front of its torso (such as medals or ties). The list does not contain duplicates.An error is thrown if you try to apply a new description which shares any assets with the existing description but a different accessory property.
See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. BackAccessory,FaceAccessory,HairAccessory,HatAccessory,NeckAccessory,ShouldersAccessoryandWaistAccessory, which are similar properties that apply accessories like this one
- HumanoidDescription System,
for more information on
GraphicTShirt
: int64Determines theGraphicused by aShirtGraphic.GraphicTShirt determines the
Graphicused by aShirtGraphicinstance whenHumanoid.ApplyDescriptionAsyncis called on aHumanoid. The asset type must be for a T‑Shirt, not a Decal or Image.See Also
- HumanoidDescription System,
for more information on
HumanoidDescription. Shirt, which can provide the same functionality in addition to providing textures for the entire torso and armsTorsoColor, which can change the color of the torso underneath the t-shirt texture
- HumanoidDescription System,
for more information on
HairAccessory
: stringNotReplicatedA comma-separated list of asset IDs that will be added asAccessoriesto aHumanoidrig whenapplied, usually those attached to its head resembling hair.HairAccessory is a comma-separated list of asset IDs that determine what accessories should be added when the description is
applied, usually those attached to its head resembling hair. The list does not contain duplicates.An error is thrown if you try to apply a new description which shares any assets with the existing description but a different accessory property.
See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. BackAccessory,FaceAccessory,FrontAccessory,HatAccessory,NeckAccessory,ShouldersAccessoryandWaistAccessory, which are similar properties that apply accessories like this one
- HumanoidDescription System,
for more information on
HatAccessory
: stringNotReplicatedA comma-separated list of asset IDs that will be added asAccessoriesto aHumanoidrig whenapplied, usually those attached to its head.HatAccessory is a comma-separated list of asset IDs that determine what accessories should be added when the description is
applied, usually those attached to its head. The list does not contain duplicates.An error is thrown if you try to apply a new description which shares any assets with the existing description but a different accessory property.
See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. BackAccessory,FaceAccessory,FrontAccessory,HairAccessory,NeckAccessory,ShouldersAccessoryandWaistAccessory, which are similar properties that apply accessories like this one
- HumanoidDescription System,
for more information on
Head
: int64NotReplicatedDetermines the asset ID of the Head to be applied to theHumanoid.Head determines the asset ID of the Head to be
appliedto aHumanoid.See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. Torso,RightArm,LeftArm,RightLegandLeftLeg, which are similar properties that also control body partHeadColor, which controls the color of this limbHatAccessory,HairAccessoryandFaceAccessory, which all can applyAccessoryobjects which are joined to the head
- HumanoidDescription System,
for more information on
HeadColor
: Color3NotReplicatedDetermines theBodyColors.HeadColor3andBodyColors.HeadColorof aHumanoidwhenapplied.HeadColor determines the
BodyColors.HeadColor3andBodyColors.HeadColorof aHumanoidwhen the description isapplied.See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. TorsoColor,LeftArmColor,RightArmColor,LeftLegColor, andRightLegColor, which are similar properties that also control body colorsHead, which controls the mesh used for the headFace, which applies a texture to the front of the head
- HumanoidDescription System,
for more information on
HeadScale
: floatDetermines by what factor the Head object of aHumanoidis scaled, as well as any accessories attached to it.HeadScale determines by what factor the Head object of a
Humanoidis scaled, as well as any accessories attached to it (such as those specified byHatAccessoryandHairAccessory). When the description is applied throughHumanoid.ApplyDescriptionAsync, this value maps to a HeadScaleNumberValuewithin theHumanoid.See Also
- HumanoidDescription System,
for more information on
HumanoidDescription. BodyTypeScaleandProportionScale, which can provide realistic rig proportionsWidthScale,HeightScaleandDepthScale, which provide finer control over other dimensions of a rig
- HumanoidDescription System,
for more information on
HeightScale
: floatDetermines by what factor the height (top-to-bottom distance) of aHumanoidis scaled, as well as all accessories not attached to its head.HeightScale determines by what factor the height (top-to-bottom distance) of a
Humanoidis scaled, as well as all accessories not attached to its head. When the description is applied throughHumanoid.ApplyDescriptionAsync, this value maps to a BodyHeightScaleNumberValuewithin theHumanoid.See Also
- HumanoidDescription System,
for more information on
HumanoidDescription. BodyTypeScaleandProportionScale, which can provide more realistic rig proportionsWidthScaleandDepthScale
- HumanoidDescription System,
for more information on
IdleAnimation
: int64When this description isappliedto aHumanoid, this determines theAnimation.AnimationIdto play when itsstateisRunningat a speed near zero.When this description is
appliedto aHumanoid, IdleAnimation determines theAnimation.AnimationIdto play when itsstateisRunningat a speed near zero.See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. ClimbAnimation,FallAnimation,JumpAnimation,RunAnimation,SwimAnimationandWalkAnimation, which are similar properties that determine animations to play on the rig
- HumanoidDescription System,
for more information on
JumpAnimation
: int64When this description isappliedto aHumanoid, this determines theAnimation.AnimationIdto play when itsstateisJumping.When this description is
appliedto aHumanoid, JumpAnimation determines theAnimation.AnimationIdto play when itsstateisJumping.See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. ClimbAnimation,FallAnimation,IdleAnimation,RunAnimation,SwimAnimationandWalkAnimation, which are similar properties that determine animations to play on the rig
- HumanoidDescription System,
for more information on
LeftArm
: int64NotReplicatedDetermines the asset ID of the LeftArm to be applied to theHumanoid.LeftArm determines the asset ID of the LeftArm to be
appliedto aHumanoid.See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. Head,Torso,RightArm,RightLegandLeftLeg, which are similar properties that also control body partLeftArmColor, which controls the color of this limb
- HumanoidDescription System,
for more information on
LeftArmColor
: Color3NotReplicatedDetermines theBodyColors.LeftArmColor3andBodyColors.LeftArmColorof aHumanoidwhen applied.LeftArmColor determines the
BodyColors.LeftArmColor3andBodyColors.LeftArmColorof aHumanoidwhen the description isapplied. For R15 and Rthro rigs, this property controls both the upper, lower, and hand parts of the left arm.See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. HeadColor,TorsoColor,RightArmColor,LeftLegColor, andRightLegColor, which are similar properties that also control body colorsLeftArm, which controls the mesh used for this limbShirt, which can apply a texture to this limb
- HumanoidDescription System,
for more information on
LeftLeg
: int64NotReplicatedDetermines the asset ID of the LeftLeg to be applied to theHumanoid.LeftLeg determines the asset ID of the LeftLeg to be
appliedto aHumanoid.See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. Head,Torso,RightArm,LeftArm, andRightLeg, which are similar properties that also control body partLeftLegColor, which controls the color of this limb
- HumanoidDescription System,
for more information on
LeftLegColor
: Color3NotReplicatedDetermines theBodyColors.LeftLegColor3andBodyColors.LeftLegColorof aHumanoidwhen applied.LeftLegColor determines the
BodyColors.LeftLegColor3andBodyColors.LeftLegColorof aHumanoidwhen the description isapplied. For R15 and Rthro rigs, this property controls both the upper, lower, and foot parts of the left leg.See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. HeadColor,TorsoColor,LeftArmColor,RightArmColor, andRightLegColor, which are similar properties that also control body colorsLeftLeg, which controls the mesh used for this limbPants, which can apply a texture to this limb
- HumanoidDescription System,
for more information on
MoodAnimation
: int64When this description isappliedto aHumanoid, this determines the asset ID of the mood animation that gives the character's face its persistent expression.When this description is
appliedto aHumanoid, this property sets the asset ID of the mood animation to apply. The asset ID must be for a Mood animation asset. Defaults to0, in which case the character's face uses its neutral rest pose.A mood animation applies a static facial pose to a character with a Dynamic Head, giving the face a characteristic expression (such as a smile) that persists while the head is otherwise idle.
See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. StaticFacialAnimation, which disables animated facial movement so that a Dynamic Head displays a static mood pose instead
- HumanoidDescription System,
for more information on
NeckAccessory
: stringNotReplicatedA comma-separated list of asset IDs that will be added asAccessoriesto aHumanoidrig whenapplied, usually those attached to its neck (such as scarves or necklaces).NeckAccessory is a comma-separated list of asset IDs that determine what accessories should be added when the description is
applied, usually those attached to its neck (such as scarves or necklaces). The list does not contain duplicates.Any accessory can used in this property, even if it is meant to go in a different accessory spot. For example, an accessory meant to go on your back (such as a cape) could be included in
HairAccessory. An error is thrown if you try to apply a new description which shares any assets with the existing description but a different accessory property.See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. BackAccessory,FaceAccessory,FrontAccessory,HairAccessory,HatAccessory,ShouldersAccessoryandWaistAccessory, which are similar properties that apply accessories like this one
- HumanoidDescription System,
for more information on
Pants
: int64Determines thePantsTemplateused by aPantsinstance.Pants determines the
PantsTemplateused by aPantsinstance whenHumanoid.ApplyDescriptionAsyncis called on aHumanoid. The asset type must be for Pants, not a Decal or Image.See Also
- HumanoidDescription System,
for more information on
HumanoidDescription. Shirt, a similar property which applies to aShirtobjectTorsoColor,LeftLegColorandRightLegColor, which can change the color of the body parts underneath the pants texture
- HumanoidDescription System,
for more information on
ProportionScale
: floatDetermines how wide (0) or narrow (1) aHumanoidrig is.ProportionScale determines how wide (0) or narrow (1) a
Humanoidrig is. Values outside the range of 0 to 1 are clamped. When the description is applied throughHumanoid.ApplyDescriptionAsync, this value maps to a BodyProportionScaleNumberValuewithin theHumanoid.Note that when the value of
BodyTypeScaleis 0, this property has no effect.See Also
- HumanoidDescription System,
for more information on
HumanoidDescription. BodyTypeScale, which also affects rig proportionsWidthScale,HeightScaleandDepthScale, which provide finer control over the dimensions of a rigHeadScale, which provides specific control over the scale of the rig's head
- HumanoidDescription System,
for more information on
RightArm
: int64NotReplicatedDetermines the asset ID of the RightArm to be applied to theHumanoid.RightArm determines the asset ID of the RightArm to be
appliedto aHumanoid.See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. Head,Torso,LeftArm,RightLegandLeftLeg, which are similar properties that also control body partRightArmColor, which controls the color of this limb
- HumanoidDescription System,
for more information on
RightArmColor
: Color3NotReplicatedDetermines theBodyColors.RightArmColor3andBodyColors.RightArmColorof a Humanoid when applied.RightArmColor determines the
BodyColors.RightArmColor3andBodyColors.RightArmColorof aHumanoidwhen the description isapplied. For R15 and Rthro rigs, this property controls both the upper, lower, and hand parts of the right arm.See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. HeadColor,TorsoColor,LeftArmColor,LeftLegColor, andRightLegColor, which are similar properties that also control body colorsRightArm, which controls the mesh used for this limbShirt, which can apply a texture to this limb
- HumanoidDescription System,
for more information on
RightLeg
: int64NotReplicatedDetermines the asset ID of the RightLeg to be applied to theHumanoid.RightLeg determines the asset ID of the RightLeg to be
appliedto aHumanoid.See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. Head,Torso,RightArm,LeftArmandLeftLeg, which are similar properties that also control body partRightLegColor, which controls the color of this limb
- HumanoidDescription System,
for more information on
RightLegColor
: Color3NotReplicatedDetermines theBodyColors.RightLegColor3andBodyColors.RightLegColorof a Humanoid when applied.RightLegColor determines the
BodyColors.RightLegColor3andBodyColors.RightLegColorof aHumanoidwhen the description isapplied. For R15 and Rthro rigs, this property controls both the upper, lower, and foot parts of the right leg.See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. HeadColor,TorsoColor,LeftArmColor,RightArmColor, andLeftLegColor, which are similar properties that also control body colorsRightLeg, which controls the mesh used for this limbPants, which can apply a texture to this limb
- HumanoidDescription System,
for more information on
RunAnimation
: int64When this description isappliedto aHumanoid, this determines theAnimation.AnimationIdto play when itsstateisRunningat a moderate speed.When this description is
appliedto aHumanoid, RunAnimation determines theAnimation.AnimationIdto play when itsstateisRunningat a moderate speed.See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. ClimbAnimation,FallAnimation,IdleAnimation,JumpAnimation,SwimAnimationandWalkAnimation, which are similar properties that determine animations to play on the rig
- HumanoidDescription System,
for more information on
Shirt
: int64Determines theShirtTemplateused by aShirtinstance.Shirt determines the
ShirtTemplateused by aShirtinstance whenHumanoid.ApplyDescriptionAsyncis called on aHumanoid. The asset type must be for Shirt, not a Decal or Image.See Also
- HumanoidDescription System,
for more information on
HumanoidDescription. Pants, a similar property which applies to aPantsobjectGraphicTShirt, a similar property which applies to aShirtGraphicobjectTorsoColor,LeftArmColorandRightArmColor, which can change the color of the body parts underneath the shirt texture
- HumanoidDescription System,
for more information on
ShouldersAccessory
: stringNotReplicatedA comma-separated list of asset IDs that will be added asAccessoriesto aHumanoidrig whenapplied, usually those attached to its shoulders (such as shoulder-mounted critters).ShouldersAccessory is a comma-separated list of asset IDs that determine what accessories should be added when the description is
applied, usually those attached to its shoulders (such as shoulder-mounted critters). The list does not contain duplicates.An error is thrown if you try to apply a new description which shares any assets with the existing description but a different accessory property.
See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. BackAccessory,FaceAccessory,FrontAccessory,HairAccessory,HatAccessory,NeckAccessoryandWaistAccessory, which are similar properties that apply accessories like this one
- HumanoidDescription System,
for more information on
StaticFacialAnimation
: booleanWhentrue, disables facial animations on a Dynamic Head, displaying a static mood pose instead. Defaults tofalse.StaticFacialAnimation controls whether facial animations play when this description is applied to a
Humanoidwith a Dynamic Head. When set totrue, the head displays a static mood pose without any animated facial movement, achieving visual parity with classic face decals.Even with
StaticFacialAnimationset totrue,MoodAnimationstill applies a static pose to give the face its characteristic expression. SettingStaticFacialAnimationtotrueis different from settingMoodAnimationto0, which would result in the Dynamic Head's neutral rest pose.This is a per-description setting and does not affect other descriptions or the user's avatar globally.
See also:
- HumanoidDescription System,
for more information on
HumanoidDescription.
- HumanoidDescription System,
for more information on
SwimAnimation
: int64When this description isappliedto aHumanoid, this determines theAnimation.AnimationIdto play when itsstateisSwimming.When this description is
appliedto aHumanoid, SwimAnimation determines theAnimation.AnimationIdto play when itsstateisSwimmingSee also:
- HumanoidDescription System,
for more information on
HumanoidDescription. ClimbAnimation,FallAnimation,IdleAnimation,JumpAnimation,RunAnimationandWalkAnimation, which are similar properties that determine animations to play on the rig
- HumanoidDescription System,
for more information on
Torso
: int64NotReplicatedDetermines the asset ID of the Torso to be applied to theHumanoid.Torso determines the asset ID of the Torso to be
appliedto aHumanoid.See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. Head,RightArm,LeftArm,RightLegandLeftLeg, which are similar properties that also control body partTorsoColor, which controls the color of this limb
- HumanoidDescription System,
for more information on
TorsoColor
: Color3NotReplicatedDetermines theBodyColors.TorsoColor3andBodyColors.TorsoColorof a Humanoid when applied.TorsoColor determines the
BodyColors.TorsoColor3andBodyColors.TorsoColorof aHumanoidwhen the description isapplied. For R15 and Rthro rigs, this property controls both the upper and lower parts of the torso.See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. HeadColor,TorsoColor,LeftArmColor,RightArmColor,LeftLegColor, andRightLegColor, which are similar properties that also control body colorsTorso, which controls the mesh used for this body partGraphicTShirtandShirt, which can apply a texture to this body part
- HumanoidDescription System,
for more information on
UseAvatarSettings
: booleanWhentrue, applying this description also applies the experience's Avatar Settings to the resulting model. Defaults tofalse.When true,
Humanoid:ApplyDescriptionAsyncorPlayers:CreateHumanoidModelFromDescriptionAsyncwill also apply the Avatar Settings set for the universe to the model.WaistAccessory
: stringNotReplicatedA comma-separated list of asset IDs that will be added asAccessoriesto aHumanoidrig whenapplied, usually those attached to its waist (such as belts).WaistAccessory is a comma-separated list of asset IDs that determine what accessories should be added when the description is
applied, usually those attached to its waist (such as belts). The list does not contain duplicates.An error is thrown if you try to apply a new description which shares any assets with the existing description but a different accessory property.
See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. BackAccessory,FaceAccessory,FrontAccessory,HairAccessory,HatAccessory,NeckAccessoryandShouldersAccessory, which are similar properties that apply accessories like this one
- HumanoidDescription System,
for more information on
WalkAnimation
: int64When this description isappliedto aHumanoid, this determines theAnimation.AnimationIdto play when itsstateisRunningat a low speed.When this description is
appliedto aHumanoid, WalkAnimation determines theAnimation.AnimationIdto play when itsstateisRunningat a low speedSee also:
- HumanoidDescription System,
for more information on
HumanoidDescription. ClimbAnimation,FallAnimation,IdleAnimation,JumpAnimation,RunAnimationandSwimAnimation, which are similar properties that determine animations to play on the rig
- HumanoidDescription System,
for more information on
WidthScale
: floatDetermines by what factor the width (left-to-right distance) of aHumanoidis scaled, as well as all accessories not attached to its head.WidthScale determines by what factor the width (left-to-right distance) of a
Humanoidis scaled, as well as all accessories not attached to its head. When the description is applied throughHumanoid.ApplyDescriptionAsync, this value maps to a BodyWidthScaleNumberValuewithin theHumanoid.See Also
- HumanoidDescription System,
for more information on
HumanoidDescription. BodyTypeScaleandProportionScale, which can provide more realistic rig proportionsHeightScaleandDepthScale
- HumanoidDescription System,
for more information on
Methods 8
AddEmote
(name: string, assetId: int64) → ()Adds the emote to the description given a name and its asset ID.AddEmote will add an Emote asset to the description given a name and its asset ID. The asset ID must be for an "Emote" asset (see Featured emotes in the Catalog).
You can add multiple emotes of the same name. All emotes of the same name can be removed using
RemoveEmote. If an emote with the same ID is added under the same name,EmotesChangedfires.See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. GetEmotes, which can be used to retrieve the emotes that have been added by this functionSetEmotesandRemoveEmote, which also manipulate what emotes have been addedEmotesChanged, which fires after this function is called
- HumanoidDescription System,
for more information on
GetAccessories
(includeRigidAccessories: boolean) → List<AccessoriesInfo>Returns a table of an avatar's current accessories.Returns a table of an avatar's current accessories. If the second parameter (includeRigidAccessories) is true then the returned table will also include entries for rigid accessories from the rigid accessory properties.
GetEmotes
() → DictionaryReturns a dictionary of emotes that have beenaddedorsetto this description.GetEmotes returns a dictionary of emotes that have been
addedorsetto this description. The keys of this dictionary are the names of the emotes, and the values are a non-empty array of emote IDs for that name.Example
local hd = Instance.new("HumanoidDescription") hd:AddEmote("Salute", 3360689775) local emotes = hd:GetEmotes() for name, ids in emotes do print(("The emote %s has %d ids:"):format(name, #ids)) for _, id in ids do print(id) end endSee also:
- HumanoidDescription System,
for more information on
HumanoidDescription. SetEmotesandAddEmote, which can add emotes that may be returned by this functionEmotesChanged, which fires with the value returned this function after it may have changed
- HumanoidDescription System,
for more information on
GetEquippedEmotes
() → ArrayReturns an array of tables describing the equipped emotes that have beenset.GetEquippedEmotes returns an array of tables which indicate the
NameandSlotof each equipped emote as it was set bySetEquippedEmotes.Example
local hd = Instance.new("HumanoidDescription") hd:SetEmotes({Salute = {3360689775}, Agree = {4849487550}}) hd:SetEquippedEmotes({"Salute", "Agree"}) -- Iterate over the equipped emotes: for _, t in hd:GetEquippedEmotes() do print(("In slot %d: emote %s is equipped"):format(t.Slot, t.Name)) endSee also:
- HumanoidDescription System,
for more information on
HumanoidDescription. SetEquippedEmotes, which sets the currently equipped emotes and changes what this function returnsEquippedEmotesChanged, which fires when the function returned by this value may have changed
- HumanoidDescription System,
for more information on
RemoveEmote
(name: string) → ()Removes any emotes that have been added under the given name.RemoveEmote removes all emotes from the description that have been
addedorsetunder the given name. If there are no added emotes with the given name, no error is thrown andEmotesChangeddoes not fire.See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. SetEmotesandAddEmote, which can add emotes that may be removedGetEmotes, which can retrieve a dictionary of emotes that may be removed
- HumanoidDescription System,
for more information on
SetAccessories
(accessories: Array, includeRigidAccessories: boolean) → ()Accepts a table that sets the accessories and related properties for an avatar.Accepts a table that sets the accessories and related properties for an avatar. If the second parameter (includeRigidAccessories) is true, then this function can also be used to set the rigid accessories in the rigid accessory properties. In this case any table entry that does not have an Order will be considered a rigid accessory and put in the appropriate property according to the AccessoryType.
SetEmotes
(emotes: Dictionary) → ()Sets all of the emotes on this description.SetEmotes sets all of the emotes on this description given a table similar to that returned by
GetEmotes. It firesEmotesChangedExample
local emotes = { Salute = {3360689775}, -- Syntax note: can also use ["Salute"] = ... Agree = {4849487550}, Disagree = {4849495710} } local hd = Instance.new("HumanoidDescription") hd:SetEmotes(emotes)See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. AddEmoteandRemoveEmotewhich can modify the added emotes on an individual levelEmotesChanged, which fires when this function is called
- HumanoidDescription System,
for more information on
SetEquippedEmotes
(equippedEmotes: Array) → ()Sets the currently equipped emotes given an array of emote names.SetEquippedEmotes sets the currently equipped emotes given an array of emote names as they were passed to
AddEmoteorSetEmotes. It can also take an array of tables similar to that returned byGetEquippedEmotes. Calling this function firesEquippedEmotesChanged.Example
local hd = Instance.new("HumanoidDescription") hd:SetEmotes({Salute = {3360689775}, Agree = {4849487550}}) -- Can provide either an array of strings... (index is slot number) hd:SetEquippedEmotes({"Salute", "Agree"}) -- ...or an array of tables as returned by GetEquippedEmotes (Slot and Name keys set) hd:SetEquippedEmotes({{Slot = 1, Name = "Salute"}, {Slot = 2, Name = "Agree"}})See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. GetEquippedEmotes, which returns a value describing the equipped emotes set by this functionEquippedEmotesChanged, which fires when this function is called
- HumanoidDescription System,
for more information on
Events 2
EmotesChanged
HumanoidDescription.EmotesChanged:Connect(function(newEmotes))Fires when emotes are added, removed or set on this description.EmotesChanged fires when emotes are
added,removedorseton the description. The event fires with the new emote table as returned byGetEmotes.If
AddEmoteis called with the same name and ID as an existing emote, this event fires.See also:
- HumanoidDescription System,
for more information on
HumanoidDescription. AddEmote,RemoveEmoteandHumanoidDescription.SetEmotes, which can cause this event to be fired
- HumanoidDescription System,
for more information on
EquippedEmotesChanged
HumanoidDescription.EquippedEmotesChanged:Connect(function(newEquippedEmotes))Fires when the equipped emotes areseton this description.EquippedEmotesChanged fires when the equipped emotes are set on this description using
SetEquippedEmotes. It provides the new equipped emotes in a table like that returned byGetEquippedEmotes.Example
local hd = Instance.new("HumanoidDescription") hd.EquippedEmotesChanged:Connect(function(equippedEmotes) print(("We have %d emotes equipped"):format(#equippedEmotes)) for _, t in equippedEmotes do print(("In slot %d: emote %s is equipped"):format(t.Slot, t.Name)) end end) hd:SetEquippedEmotes({"Salute", "Agree"}) --> We have 2 emotes equippedSee also:
- HumanoidDescription System,
for more information on
HumanoidDescription. SetEquippedEmotes, which fires this eventGetEquippedEmotes, which can be used to query the currently equipped emotes without this event firing
- HumanoidDescription System,
for more information on
HumanoidDescription also has every member of Instance. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.