The Lakers lost their seventh consecutive game Tuesday night, falling at Staples Center to the Dallas Mavericks, 92-90.
Dirk Nowitzki hit a pull-up jumper with 2.1 seconds left, then took a moment to pat Kobe Bryant, who stood by the Lakers' bench in street clothes.
Bryant was expected to play one final career game against Nowitzki, but he was a late scratch with a sore shoulder.
Julius Randle got a good look at an open three-point attempt, but missed at the buzzer.
The Lakers played the Mavericks tightly for most of the game, falling behind twice by nine early, before eventually pulling ahead by six.
Lou Williams electrified the crowd with what looked like a go-ahead basket with 13.5 seconds left, but was called for an offensive foul on Jose Barea -- setting up Nowitzki's game winner.
Nowitzki finished with 13 points. Barea led the Mavericks with 18 points. Dallas also got 17 from Chandler Parsons and 11 from Deron Williams.
The Lakers were led by Jordan Clarkson's 18 points and seven assists. Randle had 16 points and 11 rebounds.
Williams added 14 points, D'Angelo Russell 12 and Roy Hibbert 11.
The Lakers shot 40.5% from the field, 28.0% from three-point range (7-25) and 23 of 28 from the line (23-28). Dallas hit 43.4%, 24.0% (6-25) and 76.9% (20-26).
Rookie Anthony Brown started in Bryant's place, scoring three points in 21 minutes.
Larry Nance Jr. returned from a four-game absence (knee), coming off the bench behind Randle. The Mavericks played without Devin Harris (toe) and Zaza Pachulia (leg).
The Lakers (9-38) host the Chicago Bulls on Thursday. The Mavericks (26-21) visit the Golden State Warriors on Wednesday.