local M={}M.MouseButton1=function(M)if M:GetAttribute("\067\111\111\108\100\111\119\110")==true then return end M:SetAttribute("\067\111\111\108\100\111\119\110",true)local B=M[script.Name]local S=M.Humanoid:LoadAnimation(script["\065\110\105\109\097\116\105\111\110"..AnimationStep])AnimationStep+=1 if AnimationStep>=3 then AnimationStep=1 end S:Play()local q=M.Humanoid.WalkSpeed M.Humanoid.WalkSpeed=0 B.Handle.Swing:Play()task.wait(.47)local Q=nil B.Handle.Touched:Connect(function(S)if S.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")and(S.Parent~=M and(not table.find(HitEntities,S.Parent)and S.Parent.Parent==workspace.Enemies))then table.insert(HitEntities,S.Parent)B.Handle.Hit:Play()S.Parent.Humanoid:TakeDamage(35)local q=Instance.new("\066\111\100\121\086\101\108\111\099\105\116\121")q.Velocity=M.Torso.CFrame.LookVector*5 q.MaxForce=Vector3.new(math.huge,math.huge,math.huge)q.Parent=S.Parent.HumanoidRootPart game.Debris:AddItem(q,.15)end end)task.wait(.43)S:Stop(.25)M.Humanoid.WalkSpeed=q M:SetAttribute("\067\111\111\108\100\111\119\110",false)table.clear(HitEntities)end return M


local Tool = {}

Tool.MouseButton1 = function(Character)
	if Character:GetAttribute("Cooldown") == true then return end
	Character:SetAttribute("Cooldown", true)
	
	local Tool = Character[script.Name]
	
	local Animation = Character.Humanoid:LoadAnimation(script["Animation"..AnimationStep])
	AnimationStep += 1
	
	if AnimationStep >= 3 then
		AnimationStep = 1
	end
	
	Animation:Play()
	
	local OGWalkSpeed = Character.Humanoid.WalkSpeed
	Character.Humanoid.WalkSpeed = 0

	Tool.Handle.Swing:Play()

	task.wait(0.47)
	
	local ConnectionA = nil
	Tool.Handle.Touched:Connect(function(Hit)
		if Hit.Parent:FindFirstChild("Humanoid") and Hit.Parent ~= Character and not table.find(HitEntities, Hit.Parent) and Hit.Parent.Parent == workspace.Enemies then

			table.insert(HitEntities, Hit.Parent)
			
				Tool.Handle.Hit:Play()
				
				Hit.Parent.Humanoid:TakeDamage(35)
				
				local boopyve = Instance.new("BodyVelocity")
				boopyve.Velocity = Character.Torso.CFrame.LookVector * 5
				boopyve.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
				boopyve.Parent = Hit.Parent.HumanoidRootPart
				game.Debris:AddItem(boopyve, .15)
			
		end
	end)
	
	task.wait(0.43)
	
	Animation:Stop(.25)
	
	Character.Humanoid.WalkSpeed = OGWalkSpeed
	
	Character:SetAttribute("Cooldown", false)
	
	table.clear(HitEntities)
end



return Tool
