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

Animation failed to load in server, seems to work in studio fine. Help?

Asked by 7 years ago
local CanAttack = true
script.Parent.Activated:connect(function()
    local attack = script.Parent.Parent.Humanoid:LoadAnimation(script.Attack)


if CanAttack == true then
        attack:Play()
        CanAttack = false
        wait(.5)
        attack:Stop()
        CanAttack = true
        script.Parent.CanDamage.Value = true
        wait(0)
    end
end)

(Error) (This error is viewed in ROBLOX Dev Console) 15:40:59 --Animation "https://www.roblox.com//asset/?id=794186172&serverplaceid=528273530" failed to load in "Workspace.Unkn0wn_Species.DoubleSidedAxe.LocalScript.Attack.AnimationId":Animation failed to load

0
I also got this other Error from Studio Output, when I ran the script through Command bar. sc:2: attempt to index global 'script' (a nil value) Unkn0wn_Species 20 — 7y
0
This is really bugging me, i've been trying to fix it for 2 days now. Unkn0wn_Species 20 — 7y
0
I have the same problem :/ SSSpencer413 30 — 6y
0
@SSSpencer413 I tried answering you on the chat but you were offline. Make sure your animation is created by you, or is in the group creations. The Anim, must be own by you or the group depending on the game you are making either it be a game made by you, or a game in a group. Unkn0wn_Species 20 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

I got it fixed my Animation was in my creations instead of my group creations, now that it's in my group creations I can now use the animation in my group game.

Ad

Answer this question