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

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

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

Try putting the local script in StarterPlayerScripts

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