Scripting help animations

The Local Script:

local Players = game:GetService(“Players”)

local localplayer = Players.LocalPlayer

local mouse = localplayer:GetMouse()

local character = Players.LocalPlayer.Character

script.Parent.Equipped:Connect(function()

local animtreeattack = script.Parent.AxeAttack1

local animation = character.Humanoid:LoadAnimation(animtreeattack)

mouse.Button1Down:Connect(function(plr)

animation:Play()

local AxeStats = script.Parent.AxeStatus

local AXEVALUE = AxeStats.AxeDamage.Value

local RepltStorage = game:GetService(“ReplicatedStorage”)

local AxeAttackEvent = RepltStorage:WaitForChild(“RemoteEvents”):WaitForChild(“AxeAttack”)

AxeAttackEvent:FireServer(AXEVALUE)

wait(1)
end)
end)

The Error: Players.Dquvo.Backpack.Starter Axe.LocalScript:8: attempt to index nil with ‘Humanoid’

This is deprecated. Use Animator instead