local m=true script.Parent.Slash.OnServerEvent:Connect(function()local O=script.Parent.Parent.Humanoid:LoadAnimation(script.Attack)if m==true then O:Play()m=false script.Parent.CanDamage.Value=true wait(1)O:Stop()m=true script.Parent.CanDamage.Value=false end end)

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)
