Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Animation won't play?

Asked by
yoshiegg6 176
9 years ago

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?

0
This looks incomplete. Please post the entire function you made. yumtaste 476 — 9y
0
This is the entire function. It just plays an animation when equipped. Do you want the weapon script? Thats completely different. yoshiegg6 176 — 9y
0
Bump. yoshiegg6 176 — 9y
0
This is the entire function. yoshiegg6 176 — 9y

1 answer

Log in to vote
0
Answered by
woodengop 1134 Moderation Voter
9 years ago

In this script there is a Missing end)

0
Thanks. yoshiegg6 176 — 9y
0
no problem! woodengop 1134 — 9y
Ad

Answer this question