Hey Developers,
A new HumanoidDescription Instance and accompanying API has been released to make it easier to swap assets in and out of Humanoid Avatars. The HumanoidDescription Instance allows you to specify the assets required for an avatar, as well as scale and body colors. The new API allows you to apply these HumanoidDescriptions to a player avatar. New functions include:
Players:GetHumanoidDescriptionFromUserId(userId) - get a HumanoidDescription with all the assets for a specified character
Players:GetHumanoidDescriptionFromOutfitId(outfitId) - get a HumanoidDescription with all the assets for a specified outfit
Player:LoadCharacterWithHumanoidDescription(humanoidDescription) - spawn an avatar so it has everything equipped in the passed in HumanoidDescription
Humanoid:ApplyDescription(humanoidDescription) - apply a new set of assets, scales, and body colors to a Humanoid Avatar
Humanoid:GetAppliedDescription() - get the last HumanoidDescription applied to a Humanoid (or the HumanoidDescription created for the avatar when it was spawned)
Example usage could be, spawn a Humanoid Avatar looking like another Humanoid Avatar:
player:LoadCharacterWithHumanoidDescription(game:GetService("Players"):GetHumanoidDescriptionFromUserId(userId))
Or make one Humanoid Avatar look like another:
humanoid:ApplyDescription(otherHumanoid:GetAppliedDescription())
See the full tutorial here: https://developer.roblox.com/articles/humanoiddescription-system
As always, check out the latest build of Roblox, try your hand with our new Instance and API, and then come back and tell us what you think in the comments below.
Thanks,
The Roblox Team