Getting strange C++ error from Humanoid:ApplyDescription

I’m creating a handy OOP interface for generating character models, but I’m having some trouble applying a HumanoidDescription to the character templates.
Whenever I call the method Humanoid:ApplyDescription on the character template’s humanoid, the error Humanoid::ApplyDescription() DataModel was not available is thrown and I’m not entirely sure why.

function Avatar:loadCharacter()
	local character = getR15()
	character.Humanoid:ApplyDescription(Players:GetHumanoidDescriptionFromUserId(t.number(self.user) and self.user or self.user.UserId)) -- ERROR: Humanoid::ApplyDescription() DataModel was not available
	return character
end

The character template that I want to apply the description to:

Make sure your character is a descendant of the workspace

EDIT: can also be replicatedstorage (or anywhere in the datamodel (game))

if (character:IsDescendantOf(game:GetService("Workspace")) then
-- DO THING
end
1 Like

Yeah since it’s a clone, the character is in nilspace when I try to apply the description. Will give that a go.

1 Like