I made an animation for my sword tool, but it doesn’t play properly. The arm holding the sword stays in place. What could be causing this, and how can I fix it?
Heres my tool animation code:
local Player = game.Players.LocalPlayer
repeat wait() until Player.Character
local Character = Player.Character
local Humanoid = Character:FindFirstChild("Humanoid")
local tool = script.Parent
local Animation = Humanoid:LoadAnimation(script.Animation)
local debounce = false
tool.Activated:Connect(function()
if debounce == false then
debounce = true
Animation:Play()
wait(3)
debounce = false
end
tool.Unequipped:Connect(function()
Animation:Stop()
end)
end)