Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

4 comments

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)

0

This is really bugging me, i've been trying to fix it for 2 days now.

0

I have the same problem :/

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.

1 answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.