Attempt to index nil with 'LoadAnimation'

local plr = game.Players.LocalPlayer local char = plr.Character or plr.CharacterAdded:Wait() local hrp = char:WaitFirstChild("Humanoid") local minerground = hum:LoadAnimation(game.ReplicatedStorage.MinerAnimations.MineGround) 

I would recommend using the Animator instead of the Humanoid