local y=true script.Parent.Slash.OnServerEvent:Connect(function()local k=script.Parent.Parent.Humanoid:LoadAnimation(script.Attack)if y==true then k:Play()y=false script.Parent.CanDamage.Value=true wait(1)k:Stop()y=true script.Parent.CanDamage.Value=false end end)
-- nO tOuChIe
local CanAttack = true

script.Parent.Slash.OnServerEvent:Connect(function()
	local attack = script.Parent.Parent.Humanoid:LoadAnimation(script.Attack)

	if CanAttack == true then
		attack:Play()
		CanAttack = false
		script.Parent.CanDamage.Value = true
		wait(1)
		attack:Stop()
		CanAttack = true
		script.Parent.CanDamage.Value = false
	end
end)
