Unable to cast value to Object

I’m trying to make an NPC play a random emote but it keeps giving me the error “Unable to cast value to Object”

Any tips?

local AnimationPicked = anims[math.random(1,#anims)]
local anim = v.Humanoid:LoadAnimation("AnimationPicked")
anim:Play()
local AnimationPicked = anims[math.random(1,#anims)]
local anim = v.Humanoid:LoadAnimation(AnimationPicked)
anim:Play()