Skip to content

Class · inherits Instance

BodyPartDescription

Official docs ↗

Describes the appearance of an avatar body part for the HumanoidDescription.

About BodyPartDescription

BodyPartDescription is an object that stores the description for an avatar's body parts, such as the Color. It is meant to be placed underneath a HumanoidDescription in order to work with Humanoid.ApplyDescriptionAsync.

Properties 5

  • AssetId: int64The asset ID that should be applied when applying this BodyPartDescription.
  • BodyPart: BodyPartThe type of body part.
  • Color: Color3The Color3 for this body part.
  • HeadShape: stringSpecifies the head shape identifier to apply to a Dynamic Head when this BodyPartDescription is applied.

    HeadShape specifies a Classic Head shape identifier to apply to a compatible Dynamic Head. This property is only relevant when BodyPart is set to Head and AssetId references a Dynamic Head that supports head shapes.

    Example

    local AvatarEditorService = game:GetService("AvatarEditorService")
    
    -- Get available head shapes for the user
    local headShapes = AvatarEditorService:GetHeadShapesAsync(userId)
    
    -- Create a BodyPartDescription for a Dynamic Head with a Classic shape
    local bodyPartDescription = Instance.new("BodyPartDescription")
    bodyPartDescription.BodyPart = Enum.BodyPart.Head
    bodyPartDescription.AssetId = dynamicHeadAssetId
    bodyPartDescription.HeadShape = headShapes[1] -- Apply the first owned head shape
    bodyPartDescription.Parent = humanoidDescription
    
    -- Apply the description
    humanoid:ApplyDescriptionAsync(humanoidDescription)
    

    See also:

  • Instance: InstanceA reference to the Instance that should be applied when applying this BodyPartDescription.

    A reference to the Instance that should be applied when applying this BodyPartDescription. This property can be used instead of AssetId to apply accessories without uploading them to the platform. This can reference either a body part with R15, R15ArtistIntent and R6 folders, or only reference a single subfolder.

BodyPartDescription 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.