Currently> , my script is:

local Tool = script.Parent

local player = game.Players.LocalPlayer
local char = player.Character
local animation = Tool:WaitForChild("Animation")
local hum = char:WaitForChild("Humanoid")

local AnimTrack = hum:LoadAnimation(animation)



function onEquippedLocal()
	AnimTrack:Play()
end

function onUnequippedLocal()
	AnimTrack:Stop()
end


Tool.Equipped:connect(onEquippedLocal)

Tool.Unequipped:connect(onUnequippedLocal)

I am gettting the error

LoadAnimation requires the Humanoid object (UltraaaDev.Humanoid) to be a descendant of the game object

I have never encountered this error before, any help would be appreciated.