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

0

On the website, the animation isn't playing for me.

0

For me it shows my character moving its arm up and down which is the animation.

0

It still shows nothing in game.

0

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.

0

It is my animation, I made it a few days ago.