#Humanoid Descriptions for Custom Models

1 messages · Page 1 of 1 (latest)

past crater
#

Currently I have a script that gets the humanoid description of a custom model and applies it to the player humanoid. However, it always turns into a black character as opposed to the custom rig. Is there any solution to this or do I have to resort to another option?

Some context: Swapping character models is essential in my project and occurs frequently so I'm looking for a low performance demanding, smooth transition between models.

#

function SetupModule.characterSetup(player, characterName)
-- Player Setup --
local playerHumanoid = player.Character:FindFirstChild("Humanoid")
-- Character Setup --
local characterModel = ServerStorage.CharacterModels:FindFirstChild(characterName)
local characterHumanoid = characterModel:FindFirstChild("Humanoid")
local humanoidDescription = characterHumanoid:GetAppliedDescription()

if humanoidDescription ~= nil then
    playerHumanoid:ApplyDescription(humanoidDescription)
else
    print("no description :(")
end

end