If you’re going to have such a tense game that it goes into quadruple overtime, there’s only one way to end it: At the last second, with a Hollywood-level, buzzer-beating 60-foot shot.

Thanks to sophomore forward Amir Coffey, the No. 1-seeded Hopkins High School Royals in Minnesota will go on to the state semifinals, defeating Shakopee High School.

Image source: YouTube

Image source: YouTube

Coffey took the more than half-court shot just in time, the buzzer ringing while the ball was still in the air making its way to the basket for a nothing-but-net swoosh.

Watch the moment:

According to the Minneapolis Star Tribune, the game-ending shot wasn’t the only stunner in the game. In addition to the near-upset, in the first two overtimes no points were made by either team. Then there was the lead-up to Coffey’s shot:

There was some action in the fourth overtime. Hopkins turned the ball over in the final seconds, giving Shakopee a chance for a final shot, but Hopkins’ John Warren intercepted a pass, giving the Royals the ball and two seconds to make a miracle happen.

Enter Coffey, miracle worker.

“I thought it was too far to the right,” Coffey said afterward, according to the Star Tribune. “But it went in. That was a great feeling.”

Celebrating after the winning shot. (Image source: YouTube)

Celebrating after the winning shot. (Image source: YouTube)

According to WCCO-TV, the Royals use a tactic that allowed them to keep possession of the ball for several minutes on end with the Shakopee team not breaking out its zone defense.

“Even if it’s four minutes, if you have the ball and you’re guaranteed the last shot no matter what, you’re going to hold it for four minutes,” Hopkins coach Ken Novak Jr. told WCCO.

When they finally got the last shot, Coffey took it.

“It was in slow motion,” Hopkins point guard Kamail Chambers told the Twin Cities Pioneer Press. “When it was halfway, I remember thinking, it has a chance. When it did go in, I asked myself, ‘Did that really go in?’ It was a great shot at a great time.”

This story has been updated.

(H/T: Reddit)