Class · inherits Instance
BodyPartDescription
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 thisBodyPartDescription.BodyPart
: BodyPartThe type of body part.Color
: Color3TheColor3for this body part.HeadShape
: stringSpecifies the head shape identifier to apply to a Dynamic Head when thisBodyPartDescriptionis applied.HeadShape specifies a Classic Head shape identifier to apply to a compatible Dynamic Head. This property is only relevant when
BodyPartis set toHeadandAssetIdreferences 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:
AvatarEditorService.GetHeadShapesAsync, which returns head shape identifiers that can be used with this propertyAssetId, which specifies the Dynamic Head asset to apply the shape toBodyPart, which must be set toHeadfor this property to have effectHumanoid.ApplyDescriptionAsync, which applies the description containing thisBodyPartDescription
Instance
: InstanceA reference to theInstancethat should be applied when applying thisBodyPartDescription.A reference to the
Instancethat should be applied when applying thisBodyPartDescription. This property can be used instead ofAssetIdto 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.