local Attackanim = script.Attackanim
wait(1)
local vPlayer = game.Players.LocalPlayer
local character = vPlayer.Character
local humanoid = character.Humanoid
local AnimationTrack = humanoid:LoadAnimation(Attackanim)
local mouse = vPlayer:GetMouse()
mouse.Button1Down:Connect(function()
AnimationTrack:Play()
end)
Please help me, the error code: Players.mittomen28.PlayerScripts.AnimationHandler:7: attempt to index nil with 'Humanoid'
Also, this is a local script (ofc)

4 comments
is the error copy and pasted? it says "FindFirtChild", when the command should be "FindFirstChild" it's probably a simple typo, that's all
Oh sorry, I didn't update the error, just give me a second..
Players.mittomen28.PlayerScripts.AnimationHandler:7: attempt to index nil with 'Humanoid' --This is the error
LocalScripts can't play animations