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

How would I make a custom walking animation for a tool only?

Asked by
exarlus 72
6 years ago
Edited 6 years ago

So basically i just want to know how i would make a tool with a custom walking animation only for that one tool. Btw ik this doesen't have a script as an example i would just like to know how to make this.

1 answer

Log in to vote
0
Answered by 6 years ago

First, you make some variables, then make .Equipped and .Unequipped event that will play or stop the animation

local anim = -- the animation here
local animtrack = humanoid:LoadAnimation(anim)

tool.Equipped:connect(function()
    animtrack:Play()
end)

tool.Unequipped:connect(function()
    animtrack:Stop()
end)
0
thanks exarlus 72 — 6y
Ad

Answer this question