The function at the end actually doesn't work? It doesn't stop playing a hold animation, any fix?
--//Variables local plr = game.Players.LocalPlayer local tool = script.Parent.Parent local handle = tool:WaitForChild("Handle") local blade = tool:WaitForChild("Blade") local config = tool:WaitForChild("Configuration") local dmg = config:WaitForChild("Damage") local setdmg = config:WaitForChild("Dmg") local idle = config:WaitForChild("Idle") local cooldown = config:WaitForChild("CoolDown") --//Animations repeat wait() until plr.Character.Humanoid local AnimFolder = script.Parent.Parent:WaitForChild("Animations") local slash = plr.Character.Humanoid:LoadAnimation(AnimFolder:WaitForChild("Slash")) local hold = plr.Character.Humanoid:LoadAnimation(AnimFolder:WaitForChild("Hold")) hold.Looped = true tool.Equipped:connect(function() hold:play() end) tool.Activated:connect(function() slash:Play() dmg.Value = setdmg.Value hold:stop() script.Parent.CoolDown.Disabled = false script.Disabled = true end) tool.Unequipped:connect(function() hold:stop() end)