Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

[SOLVED] Animation failed to load in. Animation failed to load?

Asked by 6 years ago
Edited 6 years ago

10:24:57.914 - Animation "https://www.roblox.com//asset/?id=1569384570&serverplaceid=0" failed to load in "Workspace.BANSA168.Rusty Sword.Handle.slashAnim.AnimationId": Animation failed to load

This is a group place! It doesn't seem to work online for any of us. It does in studio for me, not for anyone else.

local event = script.Parent:WaitForChild('ClickEvent')
local tool = script.Parent.Parent

local plr = game.Players.LocalPlayer
Debounce = true

repeat
    wait()
    char = plr.Character
until char

function anim()
    local anim = script.Parent:WaitForChild('slashAnim')
    local slashAnim = char:WaitForChild('Humanoid'):LoadAnimation(anim)

    slashAnim:Play()
end

tool.Activated:connect(function()
    if Debounce then
        Debounce = false
        event:FireServer()
        local success, message = pcall(anim)
        if not success then
            warn(message)
        end
        wait(0.5)
        Debounce = true
    end
end)

I tried pcall but that doesn't change anything, it just fails to load in. I don't know if I just have to wait or if I did anything wrong with the script (the script above is a local script!). I have this with every animation I try to make, it's very annoying because nobody can see it, not even me online (I can in studio though, nobody else can)

0
SOLVED IT, I HAD TO UPLOAD IT AS A GROUP ANIMATION! User#20388 0 — 6y

Answer this question