function attack()for x,B in pairs(workspace:GetChildren())do if B:FindFirstChild("\072\117\109\097\110\111\105\100")then if B~=script.Parent then if(B.Head.Position-script.Parent.Head.Position).Magnitude<damagerange then B.Humanoid:TakeDamage(damage)end end end end wait(.3)end

function attack()
	for i,v in pairs(workspace:GetChildren()) do
		if v:FindFirstChild("Humanoid") then
			if v ~= script.Parent then
				if (v.Head.Position - script.Parent.Head.Position).Magnitude < damagerange then
					v.Humanoid:TakeDamage(damage)
				end
			end
		end
	end
	wait(0.3)
end
