TORONTO -- Serge Ibaka hit a go-ahead 3-pointer with 30 seconds remaining and the Toronto Raptors rallied from 19 down to beat the Indiana Pacers 119-118 on Wednesday, setting a franchise record with their 12th consecutive victory.

"He deserved it because he's been working his tail off on his shooting,'' Raptors coach Nick Nurse said.

Kyle Lowry had 32 points, 10 assists and 8 rebounds and Ibaka scored a season-high 30 as Toronto fought back after trailing by 11 with less than four minutes to play. The defending NBA champions scored the final 11 points of the game.

According to Elias Sports Bureau research, the Raptors are the sixth defending champions in the past 35 seasons to record their franchise's longest win streak. Four of the previous five returned to the NBA Finals, and three went on to repeat.

"We play 48 minutes,'' Lowry said. "That's how we play. We gave ourselves a chance, put the press on, made some shots, got aggressive and played better defense down the stretch.''

"We keep trusting each other and we don't point fingers," Serge Ibaka said after Toronto's epic rally from 19 down to jolt Indiana. "When things go bad, we stay together, and I think that's what makes us very special." John E. Sokolowski-USA TODAY Sports

Toronto's closing offense was pretty good, too. A trio of Raptors scored in double figures in the fourth, led by Ibaka's 15 points.

"We keep our composure during the game," Ibaka said, as quoted by TSN. "We've been there before, even in playoffs. So we have that mindset of never give up, we keep trusting each other and we don't point fingers. When things go bad, we stay together, and I think that's what makes us very special."

Ibaka said a pep talk from Nurse inspired him to keep firing even after he struggled from distance early.

"Nick told me in a timeout, 'Serge, keep shooting with confidence, just push the ball,''' Ibaka said. "He gave me a lot of confidence.''

Pascal Siakam scored 25 points, Terence Davis had 11 and Fred VanVleet added 10 to help the Raptors earn their 12th straight home win over Indiana.

Malcolm Brogdon scored 24 points and Justin Holiday added 22, but the Pacers lost their third straight. Domantas Sabonis had 15 points, 11 rebounds and 10 assists.

The Raptors trailed 106-103 after Siakam's driving dunk with 5 minutes, 5 seconds left, but Holiday made a 3, Victor Oladipo hit a jumper, and Brogdon connected from deep to put the Pacers up 114-103 with 3:50 to go.

Siakam hit one of two at the line with 1:15 left to bring Toronto within four, then forced a steal and drove for a layup to make it 118-116 with 1:07 remaining.

The Pacers called a timeout and gave the ball to Oladipo, but his shot didn't fall, leading to Ibaka's go-ahead 3 at the other end.

Oladipo missed a 3 with 10 seconds to play, and VanVleet stripped Brogdon to seal a historic victory for Toronto.

The Raptors led 30-20 after one quarter, but Indiana scored 43 points in the second to lead 63-48 at halftime.

Lowry's steal and fast-break basket with 4:02 left in the third capped a 12-0 Raptors run that cut the deficit to 75-69. Lowry scored 11 points in the quarter, but Indiana took an 86-82 lead into the fourth.

The Associated Press contributed to this report.