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