"Cannot load the AnimationClipProvider Service"

Hey devs.

So I’ve been trying to load an animation in my tool, It worked fine but when I respawned I got this message: “Cannot load the AnimationClipProvider Service” and the whole thing breaks!

Can anyone help a brother out?

Current script:

local player = game:GetService("Players").LocalPlayer
local char = player.Character or player.CharacterAdded:wait()
local hum = char:WaitForChild("Humanoid")
local animator = hum:FindFirstChildOfClass("Animator")
local tool = script.Parent

local IdleAnim = script.Parent.Animations:WaitForChild("Idle")
local ShoveAnim = script.Parent.Animations:WaitForChild("Shove")
local ShootingAnim = script.Parent.Animations:WaitForChild("Shoot")
local ReloadingAnim = script.Parent.Animations:WaitForChild("Reload")
local ReloadingEmptyAnim = script.Parent.Animations:WaitForChild("ReloadEmpty")

local idletrack = animator:LoadAnimation(IdleAnim)
local shootingtrack = animator:LoadAnimation(ShootingAnim)
local reloadtrack = animator:LoadAnimation(ReloadingAnim)
local reloademptytrack = animator:LoadAnimation(ReloadingEmptyAnim)

And yes, I have made sure that my Humanoid is in Workspace.

1 Like

Are IdleAnim, ShootingAnim, ReloadingAnim, and ReloadingEmptyAim all assigned variables? Are their animation ids valid?

Yup sir, I forgot to mentioned but they are in a folder I made for storing animation, let me update it real quick

Just put a wait for like 0.5 before loading an animation, this has happened to me before and you just have to wait for the service to load

This local script is in a tool and I set it so that when you equip it, it loads. but I haven’t even equipped it yet and it just loads

So I found a solution.

It turns out that my character’s parent is a “nil”

If anyone else is having this problem with the animator then this is the fix.

Put this on top of your local script where you load your animation

repeat
	wait()
until game:GetService("Players").LocalPlayer.Character.Parent == workspace

hope I helped you out :smiley:

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