I'm trying to play an animation when the tool is equipped but it doesn't work. What do I do?
local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/Asset?ID=144911345"
script.Parent.Equipped:connect(function()
animTrack = player.Humanoid:LoadAnimation(animation)
animTrack:Play()
end)
I saw on the wiki they binded the animation to the keyframe reached event, but is that whats wrong? If so, what does that mean or do and how do i do it?

4 comments
This looks incomplete. Please post the entire function you made.
This is the entire function. It just plays an animation when equipped. Do you want the weapon script? Thats completely different.
Bump.
This is the entire function.