I’m trying to create a jeff the killer chaser. I got the AI working but I am trying to make it where when the player gets attack the AI will play a hit animation. But then it gave me this error message “LoadAnimation requires an Animation object”.
Is the hit instance you are searching the Humanoid for an Animation instance? It might be better to do something like this:
--outside of your function
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://your_animation_id_here"
local SwingAnimation = humanoid.Animator:LoadAnimation(anim)
--inside your function
SwingAnimation:Play()