Animation doesn't work when I click

I’m basically making an eating animation but it doesn’t work. I have the script and everything. Animation ID, scripts checked multiple times, etc. Any help?

Script

local Burger = script.Parent
local EatAnimation = Burger.EatAnimation

Burger.Equipped:Connect(function(Mouse)
Burger.Activated:Connect(function()
local Character = Burger.Parent
local AnimationTrack = Character.Humanoid:LoadAnimation(EatAnimation)
AnimationTrack:Play(5869896883)
end)
end)

You shouldn’t put an ID as an argument for :Play()

Take that number out and try it. The correct arguments for :Play() can be found here:

Try placing the animation ID inside of the animation object instead and remove it from the :Play(), it should work just fine then!

1 Like