The error is stated in the title. I get this error:
I’m just trying to animate a custom tail I made, but it simply doesn’t animate cause of this error.
My code:
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://---" -- I censured the ID (ik I'm too cautive, sorry lol)
local controller = Instance.new("AnimationController")
controller.Parent = Tail
local animator = Instance.new("Animator")
animator.Parent = controller
animator:LoadAnimation(animation):Play()
If anyone knows how to fix this, please tell me cause it’s really annoying me.