It took 3 1/2 months, and an overtime period on Friday, but the Lakers are over .500 again.

The Lakers (32-31) beat Toronto, 118-116, at Staples Center on Friday night, thanks primarily to Kobe Bryant.

The All-Star guard scored 41 points, including a two-handed dunk over DeMar DeRozan to give the Lakers a 117-115 lead with 10.6 seconds to go. Bryant also led the Lakers with 12 assists.

Rudy Gay missed a 15-footer at the buzzer to seal the Lakers’ win.

The Lakers trailed for most of the game before Bryant hit a three-pointer with 4.4 seconds left to tie the score at 109. Gay also missed a jumper at the buzzer for Toronto in regulation that could have won the game.

Dwight Howad had 24 pionts and 13 rebounds while Steve Nash added 22 points for the Lakers.

DeRozan led the Raptors with 28 points.