I want a sword animation to play and it works in studio but not in game and I have tried turning on filtering but that did not work. I also get an error saying that the sword animation could not be loaded when I play the actual game.
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(1)
attack:Stop()
CanAttack = true
script.Parent.CanDamage.Value = true
end
end)

5 comments
What type of script is it in?
local
The animations must be self made. If they are not, it errors.
Are you using your own animation in your own place?
I am using my own animation but it is in a group place