Whenever my character dies, or resets, an error pops up in the console saying “Cannot load the AnimationClipProvider Service.” And whenever I click on the error it sends me to local IdleAnimation = Humanoid:LoadAnimation(Config.Animations.IdleAnimation) in my code.
Someone said in another post that this happens when the humanoid isn’t loaded in, but I have a wait on both the character and the humanoid.
local Player = game:GetService("Players").LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
Nope, that doesn’t work either, unless I did something wrong
local Character = Player.Character or Player.CharacterAdded:Wait()
repeat task.wait() until Character.Parent == game:GetService("Workspace")
local Humanoid = Character:WaitForChild("Humanoid")
Doesn’t work either, unless, (once again) I am doing something wrong.
local Character = Player.Character or Player.CharacterAdded:Wait()
repeat task.wait() until Character.Parent == game:GetService("Workspace")
local Humanoid = Character:WaitForChild("Humanoid")
local Animator = Humanoid:FindFirstChildOfClass("Animator")
local IdleAnimation = Animator:LoadAnimation(Config.Animations.IdleAnimation)
local DownAnimation = Animator:LoadAnimation(Config.Animations.DownAnimation)
local FireAnimation = Animator:LoadAnimation(Config.Animations.FireAnimation)
local ReloadAnimation = Animator:LoadAnimation(Config.Animations.ReloadAnimation)
I should mention that I’m not getting an error in the console anymore, but instead, the animations just aren’t loading.
This usually happens when loading an animation for the first time when the game has loaded. Try loading it a second time. To prevent this from happening, use ContentProvider:PreloadAsync to load animations beforehand.
To be honest, I haven’t used it much either, but I know the first parameter used is an array to load the objects, e.g a Folder. It’s commonly used client-side. Did playing the animation track a second time work?
Where are all the game animations placed? If it’s in ReplicatedStorage, then try to pre-load them client-sided (I highly recommend placing them there)
-- client side
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ContentProvider = game:GetService("ContentProvider")
local Animations = ReplicatedStorage:WaitForChild("AnimationFolder")
local AnimationTable = Animations:GetChildren()
ContentProvider:PreloadAsync(AnimationTable)
It’s also useful to do this BEFORE the animations are used (just learnt this rn lol)
This is a gun kit I made, so for now, the StarterPack for testing.
However, if I were to do something with these guns in a game, they could be parented to ServerStorage to hold them for a shop, or round start, or whatever it could be for.
Well, it just started happening to me. I even checked if there was an animator inside the character because exploiters can just delete it but it still didn’t fix it. Judging on how Roblox had a recent glitch that would completely break your animator and not play any animations, I think they’re trial and erroring right now.