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

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, 0.15)
		end
	end)

	task.wait(0.43)

	Animation:Stop(0.25)

	Character.Humanoid.WalkSpeed = OGWalkSpeed

	Character:SetAttribute("Cooldown", false)

	table.clear(HitEntities)
end

return Tool
