I am making a simulator and the tool animation isn't working. I have 2 scripts. Here is the first one
script.Parent.Activated:Connect(function()
local action = script.Parent.Parent.Humanoid.Animator:LoadAnimation(script.Animation)
action:Play()
end)
Here is the second one
local tool = script.Parent
local animation = tool.LocalScript.Animation
tool.Activated:Connect(function()
local character = tool.Parent
local humanoid = character.Humanoid
local AnimationTrack = humanoid.Animator:LoadAnimation(animation)
AnimationTrack:Play()
end)
Any help appreciated!

5 comments
On the website, the animation isn't playing for me.
For me it shows my character moving its arm up and down which is the animation.
It still shows nothing in game.
If the animation doesn't belong to you, the creator may have privated it. I've come across cases where an animation cant be used because the creator does not allow it.
It is my animation, I made it a few days ago.