Topic: I was making a salute animation that plays when you equip the tool when I noticed the tool doesn't work in game. The tool shows, but it just plays the holding tool animation and not the salute animation.
What it should be doing: https://gyazo.com/45c8eb61bdea521c7d229641330c4461
Script: - In a local script inside the tool
wait()
local dance = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation)
local Player = game.Players.LocalPlayer
local Holding = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Holding)
local Tool = script.Parent
Tool.Equipped:Connect(function()
dance:Play()
wait(1)
Holding:Play()
end)
Tool.Unequipped:Connect(function()
dance:Stop()
Holding:Stop()
end)

1 comment
Sorry to mention, but Humanoid:LoadAnimation is now deprecated. You now need to use Animator:LoadAnimation()