Script:
knife = script.Parent
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:wait()
knife.Equipped:Connect(function()
local equip = script.Parent.Parent.Humanoid:LoadAnimation(script.Equip)
local idle = script.Parent.Parent.Humanoid:LoadAnimation(script.Idle)
equip:Play()
wait(1)
idle:Play()
end)
knife.Activated:Connect(function()
local slash2 = script.Parent.Parent.Humanoid:LoadAnimation(script.Slash2)
local sound = script.Parent.Handle.Slash:Play()
slash2:Play()
end)
knife.Unequipped:Connect(function()
local idle = character.Humanoid:LoadAnimation(script.Idle)
idle:Stop()
end)
Everything runs fine until you unequip the tool. How would you stop the animation?
How the knife works: https://gyazo.com/6c16b268f74f9b781fa618ca101a0517
