I have watched multiple videos and read multiple articles on how to put animations into tools, but nothing I ever use works, can anyone help me please? Here is a local script I have inside a tool:
script.Parent.Activated:Connect(function()
local player = game.Players.LocalPlayer
local animation = script.Parent.Animation --assuming the animation is inside the tool
local animationid = ("rbxassetid://"..5266726740)
animation.AnimationId = animationid
local Track = player.Character:FindFirstChild("Humanoid"):LoadAnimation(animation)
Track:Play()
end)

4 comments
Why don't you make a variable for your humanoid?
Maybe you have to replace FindFirstChild With WaitForChild, that's what I always do when referencing a Humanoid, I don't know if that'll help though
I put WaitForChild, but still does nothing
What are you using? Like what is your tool?