Animation tool not working

So I am making a water bottle that plays an animation but it doesn’t?

script:

local player = game.Players.LocalPlayer
local char = player.Character

local animation = script.Parent.Animation
local track = char.Humanoid:LoadAnimation(animation)

script.Parent.Activated:Connect(function()
	track:Play()
end)

Check if the AnimationId is right in the Animation, and also, just for you to know, because this is on a client script, only you can see the Animation.


And yes its a client script

I don’t see anything wrong, the only thing I can think of is something wrong with the Animation.

It works with a regular npc without a tool though.

Did you set the animation to a action?

That’s not true actually. Animations loaded via the humanoid animator replicate to the server and other clients.

Really? I did not know that. Thanks for telling me.

Can you provide more information about your issue? Whats the structure of the tool? Are you getting any errors? Since it is a client script verify that you wait for the animator object to be loaded before loading your animation.