Why vector2 animation wont play?

local anims = {}
local npc = script.Parent
local animator = npc.AnimationController.Animator
anims[Vector2.new(0,0)] = animator:LoadAnimation(npc.ControllerManager.Animations.idle)
anims[Vector2.new(0,0)]:Play()

and i get this error even if i already assign the animation to the position
Capture

local anims = {}
local npc = script.Parent
local animator = npc.AnimationController.Animator

-- Convert Vector2 to string for use as table key
local key = tostring(Vector2.new(0, 0))

anims[key] = animator:LoadAnimation(npc.ControllerManager.Animations.idle)

anims[key]:Play()

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.