Fred VanVleet scored 16 of his 19 points in the fourth quarter, Scottie Barnes had 21 points and the Toronto Raptors won back-to-back games for the first time this season, holding on to beat the Orlando Magic 110-109 on Friday night.

Gary Trent Jr. had 19 points and made a crucial defensive play on the final possession of the game. OG Anunoby scored 16, including 10 in the fourth, and Dalano Banton had 10 points as the Raptors evened their record at 3-3. Toronto beat Indiana on Wednesday.

Also read: NBA fines Trae Young $15,000 for making contact with referee

Barnes got the best of fellow rookie Jalen Suggs as Orlando lost its third straight. Cole Anthony shot 5 for 6 from 3-point range and scored 24 points and Suggs had 21.

Wendell Carter Jr. had 17 points and 12 rebounds. Mo Bamba added 14 points and 18 rebounds, but Orlando lost its ninth straight meeting with the Raptors.

Toronto passed on Suggs to choose Barnes with the fourth pick in last summer’s draft. Suggs went to Orlando with the fifth pick.

Also read: NBA: Joel Embiid helps 76ers stave off collapse against Pistons, scores 30 on bad knee

Barnes and Suggs have been friends for several years and won two gold medals together with the U.S. at the FIBA Under-17 and Under-19 World Cups in 2018 and 2019.

Suggs made a pair of free throws to begin the fourth quarter, putting Orlando up 80-77, but Anunoby scored eight points as Toronto answered with a 13-0 run over the next three minutes to lead 90-80 with 8:37 to play.

Raptors fans chanted “Scottie’s better! Scottie’s better!” with Toronto leading in the final two minutes, but Suggs nearly showed otherwise, completing a four-point play with 52 seconds left to cut the gap to 100-106. After Anunoby missed, Franz Wagner’s 3 made it a one-point game with 33 seconds left.

Anunoby missed from 3, and Orlando called timeout with 5.8 seconds left. On the ensuing inbounds play, Trent knocked the ball away from Anthony, whose halfcourt shot at the buzzer fell short.

Also read: FBI reveals hacker illegally streamed live sports games, tried to extort MLB

After leading all scorers with nine points in the first, Barnes added 10 more in the second, two of them on an impressive full-court drive and one-handed slam.

Barnes shot 4 for 4 in the quarter, leaving late in the half to receive treatment after he was poked in the eye. He returned to start the second half

Carter scored 11 points in the second but Toronto led 54-51 at halftime.

Also read: NBA: Montrezl Harrell helps Washington Wizards beat Boston Celtics, 116-107

Barnes didn’t score in the third but Suggs had seven points for the Magic, who took a narrow 78-77 lead to the fourth.

Tip-Ins

Magic: Orlando didn’t attempt any free throws in the first quarter. … Bamba and Anthony each had five assists. … Wagner scored 10 points as all five Magic starters reached double figures.

Raptors: Barnes had nine rebounds. … The Raptors scored 22 points off 17 Orlando turnovers. … F Yuta Watanabe (left calf) had a setback after practicing with Toronto’s G League team this week and was held out of practice Friday, coach Nick Nurse said.