Cannot load the AnimationClipProvider Service

normal script inside a proximity point and the proximity is inside a door knob
script:

local prox = script.Parent
game.Players.PlayerAdded:Connect(function(plr)
	local char = plr.Character or plr.CharacterAdded:Wait()
	
		local hum  = char:WaitForChild("Humanoid")
	
	
	
	local animation = Instance.new("Animation")
	
	animation.AnimationId = "rbxassetid://9242790306"
		local track = hum:LoadAnimation(animation)
	
		prox.Enabled = true
		
	prox.Triggered:Connect(function()
		prox.Enabled = false
		track:Play()
			print("Working")
			
	end)
	end)

its r6 animation and i set the place to r6 already

You need to yield for a second or two before loading the animation.

That allows for the AnimationClipProvider service to properly load.

1 Like

in characterwait()?

You could just add a task.wait(1) or task.wait(2) before the animation is loaded.

Also animations replicate to the server so this would be better handled on the client instead.

1 Like

so dont use normal script and use local script?

That decision is up to you, it isn’t related to the AnimationClipProvider issue though.

1 Like