LAKE BUENA VISTA, Fla. (AP) — Kyle Kuzma hit a 3-pointer with .4 seconds left and the Los Angeles Lakers beat the Denver Nuggets 124-121 to snap a three-game losing streak.

LeBron James threw an inbounds pass to Anthony Davis, who flipped it to Kuzma on the right wing for the game-winner as the clock ran down.

The Lakers, outplayed down the stretch by Denver’s bench, got 29 points and 12 assists from James, who hit two 3-pointers in the fourth quarter. Anthony Davis had 27 points and Kuzma 25.

P.J. Dozier had a chance to put the Nuggets up by one with 4.4 seconds left but missed the second of two free throws.