DataModel was not avaliable

Hi, I have this script that applies the player’s appearence to a dummy’s humanoid, but recently its been giving me the error “Humanoid::ApplyDescription() DataModel was not available” (HumanoidToApplyTo is the dummy’s humanoid)

local success, err = pcall(function()
		PlayerDescription = Players:GetHumanoidDescriptionFromUserId(player.UserId)
		TempDescription = Players:GetHumanoidDescriptionFromUserId(1)
	end)
	
	
	if success then
		HumanoidToApplyTo:ApplyDescription(TempDescription)
		HumanoidToApplyTo:ApplyDescription(PlayerDescription)
		elseif not success then
		warn("ApplyDescription failed, with error: " .. err)
	end

Any help would be appriicated, thanks!

I’m not an expert at ApplyDescription, but does inserting the character from the Players service work?

That means HumanoidToApplyTo's parent is ‘nil’ at the time ApplyDescription is called through/on it.

Ensure its parent is set and add a yield if necessary.