Why do I get this error? "Cannot load the AnimationClipProvider Service"

So I have a script that makes an npc do an animation.

But I keep getting this error

Does anyone know why? Also my code

local function loadCharacter(charName)
	local char = game:GetService('ServerStorage'):FindFirstChild('Characters'):FindFirstChild(charName):Clone()
	
	local anim = char.Humanoid:LoadAnimation(script:FindFirstChild('Anim'))
	
	
	char.Position = Vector3.new(42.064, 5.445, 15.961)
	char.Parent =workspace
	
	anim.Looped = true
	anim:Play()
	
end

wait(1)
loadCharacter('Dummy')

I remember seeing something about this once. Something you might try is to do the LoadAnimation after you’ve parented your character to the workspace. See if that helps any.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.