I know this error mostly pops out when you try to play animation track instead of an animation, but thats not the case here. I dont know what is the issue and any help will be appreciated.
my code:
local parryA = script.Parent.parry
--I have humanoid defined elsewhere but copypasting whole script would cause confusion, but I can assure you that the humanoid IS defined as it should be
local parryAnimation = humanoid:LoadAnimation(parryA)
parryAnimation:Play()
Ok you don’t need to create an entirely new Animation if its already there. What you were doing before is perfectly fine. Try this instead.
local ParryA = script.Parent:WaitForChild("parry")
local Humanoid = define humanoid.
local Animator = Humanoid:WaitForChild("Animator")
local ParryAnimation = Animator:LoadAnimation(ParryA)
ParryAnimation:Play()
Thanks to you I noticed that the line of error showed one line BELOW the animation, where I was playing a sound, I have noticed that I have also a sound with name “parry” under the parent, I have renamed it and it works, thank you