Hey I'm having a little bit of trouble playing my animation here is the code:
local SwordAnim = script.Parent:WaitForChild("SwordAnim")
script.Parent.Activated:Connect(function()
SwordAnim:Play()
end)
I don't know if im forgetting something or what

3 comments
It errored line 2
What did the error say?
Also are you using a LocalScript or a server script? The error may be caused from not using a localscript