Gordon Hayward and the Boston Celtics kept rolling on Wednesday night.

G-Time tallied 23 points, seven rebounds and seven assists, as Boston won its fifth straight with a 116-100 victory over the Orlando Magic at TD Garden. The performance was Gordon’s sixth 20-plus point game in his last seven. The Celtics (35-15) are 6-1 over that frame, and have won eight of their last nine overall moving up to third in the East through 50 games.

Boston was a little slow out of the gate, falling behind 12-5 just over three minutes into the game. But the Celtics settled in as the quarter progressed and went on a 9-0 run, capped by back-to-back buckets from No. 20 — a pull-up jumper and a driving floater — to take a 14-12 lead.

Orlando pushed back to the lead but a three by Jayson Tatum tied the score at 17-17 and ignited a 14-2 run by Boston to take a lead to the end of the first. As part of that run, Gordon put the spin moves on the Magic to free himself up for another mid-range jumper.

After one, Boston led 32-24. Orlando wouldn’t go away and that lead had been halved by the time Gordon returned midway through the second. The rest of the quarter saw No. 20 serve as a facilitator for the Boston offense, setting up Semi Ojeleye, Jayson Tatum and Enes Kanter for buckets.

Boston held a one-point lead at half and the game continued to ebb and flow in the third, but a late spurt led by Gordon pushed the Celtics to the lead for good. His first bucket of the third frame pulled Boston even 65-65. Less than a minute later, he drove in and finished with a finger-roll to put the Cs up one. Moments later, No. 20 grabbed a defensive rebound, pushed it up the court, and on the other end, set up Brad Wanamaker for a trey to make it 72-68.

When asked about how he picks his spots to score and facilitate, Gordon said he simply tries to take what the defense is giving.

“A lot of it is still trying to attack and how they are guarding you. They did a really good job of scrambling around there, and when someone gets beat on their team they are all there to help. Then you kick it out and feel like you might have a shot and somebody is running at you. Some of it was just how they were guarding and trying to balance that.”

Orlando quickly evened the score and then both teams went cold until the final minutes of the third. That’s when Gordon took over the game.

Over the final 1:31 of the third, G-Time scored eight points, and did so in all manners, first with a triple, then with a mid-range jumper and finally with a drive to the bucket, where he finished and drew a foul to make it a potential three-point play. When he converted the subsequent free throw, Boston led 85-77.

The Celtics didn’t pull away entirely until midway through the fourth when Tatum got hot, pouring in eight straight Boston points and then assisting on a vicious jam from Jaylen Brown that made it a 10-point game. Gordon added a couple of buckets in the final frame to sustain that lead and the Cs finished the game on a 15-4 run to close out their fifth straight win.

The Celtics will look to make it six straight wins on Friday when they host the Atlanta Hawks, who they just defeated on Monday night in Atlanta. Tip-off of the rematch is set for 7:30pm ET and the game can be seen on NBC Sports Boston.