Lopez put in 26 points while Williams provided 20 and 13 assists for the Nets, who notched their fourth win in five games.
Andray Blatche helped out with 18 points and MarShon Brooks added 14 as Brooklyn got back on the winning track following a Monday loss to Philadelphia.
The Hornets got 21 points from Eric Gordon but couldn't avoid their fourth straight road loss.
Anthony Davis contributed 17 points and 10 boards for New Orleans.
Man spent 15 hours in jail for plugging electric car into an outlet at a school
Florida bear attack: Black bear mauls woman's face