Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Animation won't play?

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

0

This looks incomplete. Please post the entire function you made.

0

This is the entire function. It just plays an animation when equipped. Do you want the weapon script? Thats completely different.

0

Bump.

0

This is the entire function.

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.