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

How do I animate a tools handle?

Asked by 7 years ago

So basically, I've created a animation which moves the tool around a bit but when I put the animations with the same tool it doesn't operate like the animation I've created how do I fix that?

anim = humanoid:LoadAnimation(reloadanim) -- variable
anim:Play() 
0
Could you clarify your problem? Shawnyg 4330 — 7y
0
What do you mean? rareheaddress 74 — 7y
0
I answered below btw. wolfbarrier123 -25 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

player = game.Players.LocalPlayer

mouse = player:GetMouse()

animation = script:WaitForChild("Put name of the animation inserted into this here")

enabled = true

mouse.Button1Down:connect(function() if enabled then enabled = false

    local animationTrack = player.Character.Humanoid:LoadAnimation(animation)
    animationTrack:Play()

    wait(3)
    enabled = true

    animation:Stop()

end

end)


Put this script into a LocalScript..Then insert a animation inside. Make sure you exported your animation. Then copy the ID and paste that into 'Animation ID' in Properties.. Also, in the Script.. whatever you named the animation, put it inside the quotes^^^^ .. I had the same problem as you and this helped me. Also.. here's the video I watched to figure this out!

https://www.youtube.com/watch?v=aFJADlSyRrQ

0
Sorry..It cut off for some reason wolfbarrier123 -25 — 7y
0
sorry, but this wasn't what I was looking for. rareheaddress 74 — 7y
Ad

Answer this question