DALLAS — As they watched Dirk Nowitzki's shooting heat up yet again, fans at the American Airlines Center thought they might be watching history Saturday night.

Nowitzki will have to wait another game to reach his latest milestone, but his Dallas Mavericks got a much-needed win.

Tim Hardaway Jr. scored 22 points, Nowitzki closed within three points of Wilt Chamberlain on the NBA scoring list and the Mavericks ended a seven-game losing streak with a 121-116 victory over the Cleveland Cavaliers.

Entering the fourth quarter with just four points, Nowitzki scored 10 in the first five minutes of the period to bring himself to the cusp of Chamberlain for sixth place on the career scoring list.

Nowitzki hit a turnaround jumper, a 3-pointer, two free throws and then another from long range with 7:15 left in the game. With the crowd buzzing on every Mavericks possession in the final minutes, Nowitzki missed his final five shots before leaving to a standing ovation in the final seconds.

"I was going for it there," Nowitzki said. "I just didn't have another hot hand down the stretch."

He has another home game on Monday before the team leaves on a three-game road trip.

"Breaking records is always fun," Nowitzki said. "If it happens at home, it's even more special for fans that have been riding with you for such a long time."

Nowitzki was one of seven Mavericks in double figures, helping to offset leading scorer Luka Doncic's absence due to a right knee contusion.

Maxi Kleber had 18 points and a career-high 12 rebounds for Dallas, and Jalen Brunson and Dwight Powell had 16 points apiece.

Collin Sexton scored 28 for the Cavaliers. Kevin Love and Cedi Osman each had 22 for Cleveland, which has lost three in a row.

Cleveland's last lead came at 10-9 midway through the first quarter, and the Mavericks led by as many as 21 in the second half before the Cavaliers made a run late to make the final score closer.

"I think we took a huge step back defensively," Love said. "We've been looking at film, but when we're not scoring that ball it's almost like we're giving up on the defensive end."

TIP-INS

Cavaliers: Though both attended shootaround Saturday, Larry Nance (rib contusion) and Tristan Thompson (left foot soreness) remained out for Cleveland. ... With Phoenix winning Saturday at New Orleans, Cleveland's six road wins are the fewest in the NBA.

Mavericks: Brunson and Powell's numbers have spiked since the All-Star break, with Powell averaging 17 points (nine prior to the break) and Brunson averaging 16 (seven). Brunson is also shooting 92 per cent from the free throw line compared to 67 per cent before the break. ... Dorian Finney-Smith scored 14 to reach 1,000 points for his career.

SEXTON'S STREAK

Sexton surpassed 20 points for the fifth game in a row and 19th time in his rookie season. He finished one short of his career high.

"The game is starting to slow down for him a little bit," Cavs coach Larry Drew said. "He's just really doing a good job of picking and choosing his spots."

GOING FOR ASSISTS

Nowitzki's teammate Devin Harris remained on the floor in the final quarter. It was Harris who delivered the assist on the basket that gave Nowitzki 30,000 points in 2017. Harris wanted another chance at history Saturday.

"I think everybody sacrificed and tried to get it over for him," Harris said. "We wanted to get it for him. I'm hoping this next game we will be able to."

Harris finished with a season-high nine assists.

UP NEXT

Cavaliers: Host Detroit on Monday, starting a three-game homestand.

Mavericks: Host New Orleans on Monday.

___

More AP NBA: https://apnews.com/NBA and https://twitter.com/AP-Sports