Hello. I made an animation and a script for a tool. When I click, the animation is supposed to play. Instead nothing happens. If I quickly unequip the tool, the animation plays. Is there a way to make the animation play WITH the tool?
Here is the script:
function onClicked(plr)
local ex = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation)
ex:Play()
end
script.Parent.Activated:connect(onClicked)
Thanks

10 comments
Thanks for posting. Sadly these scripts do the same thing as my original script.
Can I have the animation ID?
Sure, the ID is 1579421340
Alright, let me do some testing
Ok thanks
It says the ID is invalid..Are you sure its correct?
Yes I'm sure it is correct, here is the animation. https://www.roblox.com/library/1579421340/Drink2
Look at the edit, I also found out I cant help you anymore, I found out the Animation only works with the "owner" of the animation.
The new script didn't work, but thanks for trying to help anyway.
Welcome.