-- animation module
return {
[1] = 17891716141,
[2] = 17891583383,
[3] = 17891731439,
[4] = 17891732428,
[5] = 17891592479,
}
-- animation load in localscript
for anim, id in pairs(animations) do
local inst = Instance.new("Animation")
inst.AnimationId = "rbxassetid://" .. id
tracks[anim] = animator:LoadAnimation(inst)
inst:Destroy()
end
When a player dies and respawns, the line: tracks[anim] = animator:LoadAnimation(inst) errors out to: Cannot load the AnimationClipProvider Service error