Humanoid::ApplyDescription() DataModel was not available

Hello. I have a script that should change the running animation to the ninja bundle running animation, but for some reason I get the error that is stated in the title.



local function onPlayerAdded(player)
	-- Create a HumanoidDescription
	local char = player.Character or player.CharacterAdded:Wait()
	local humanoid = char:FindFirstChild("Humanoid")
	local humanoidDescription = humanoid:GetAppliedDescription()
	humanoidDescription.RunAnimation = "658830056"
	-- Spawn character with the HumanoidDescription
	if humanoid then
		humanoid:ApplyDescription(humanoidDescription)
	end
end

-- Connect "PlayerAdded" event to "onPlayerAdded()" function
game.Players.PlayerAdded:Connect(onPlayerAdded)

This is a server script.

I think you need to use, “rbxasset://” to get the animation.

1 Like

I will try, I am pretty sure I already did, but you might be right.

Nope. still didn’t work. Sorry.

Perhaps you could add a short wait before applying the description. I believe this error occurs whenever the desired humanoid is not a descendant of the workspace.

2 Likes

Yeah I just thought that too since I tested it with a remote event and it works

Great, it worked thank you, as always, weird studio behavior.

1 Like

You could also make it a WaitForChild(“Humanoid”, 1) instead of :FindFirstChild() and it would have the same effect.