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

How do you play idle animation when you hold a tool?

Asked by
Tawhi56 15
4 years ago

So I thought of making a game where if you hold out a sword, you are now standing in a different pose. But I can't script it. I've made the animation and tool of course and put the local script in the Tool and I've tried this scripts:

debounce = false script.Parent.Equipped:Connect(function(Mouse) Mouse.Button1Down:Connect(function() if debounce == false then debounce = true animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.OnlyHolding) animation:Play() wait(1.5) debounce = false end end) end)

script.Parent.Unequipped:Connect(function() animation:Stop() end)

the animation id is: 4773335371 And it is called OnlyHolding

1 answer

Log in to vote
0
Answered by 4 years ago

Try putting the local script in StarterPlayerScripts

Ad

Answer this question