A seventh grader hit the biggest jackpot of his life when he netted $10,000 after a flawless shooting challenge at a high school basketball game.

JJ Franks of Minot, North Dakota, made a layup, free throw, three-pointer and half-court shot in 25 seconds to win the grand prize at Bishop Ryan Catholic School last week.

Basketball on empty court

A seventh-grader in North Dakota won $10,000 after making a half-court shot. (Brett Carlsen/Getty Images)

Franks had to make the shots and grab the ball himself, and he knocked down all four consecutively.

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

After making the first three quite effortlessly, he wound up and launched a Hail Mary that was nothing but net. He was immediately mobbed by players and spectators.

"You only get one shot at that, so if you miss, you miss," he told Valley News Live. 

"I was thinking, 'I’m probably not going to make it, but I’ve just got to try and try and hope it goes in.'"

A Bishop Ryan player compared Franks to the GOAT.

ST JOHN'S CHEERLEADERS REFUSE TO PERFORM AT GAME AFTER SCHOOL FAILS TO RECOGNIZE THEM ON WOMEN IN SPORTS DAY

"Just Tom Brady throws it, banks in it. It’s just like, ‘No way.’ Everyone storms the court, and it was pretty cool," said Ramsey Walz.

Franks knew his chances were slim, but with a bit of faith, he lived every kid's — and many adults' — dream.

basketball scoring during match in arena

JJ Franks drilled a layup, free throw, three-pointer and half-court shot in 25 seconds. (iStock)

CLICK HERE TO GET THE FOX NEWS APP

"That was one in a million, and through the power of God, it went in," Franks said.

"The first three, I thought he has some basketball talent, but the last shot, really, I think was maybe more a gift from God than it was some natural talent," said his mother, Marie.

Franks is a player for the K-12 school's junior-high team. He said the cash is going straight to his college fund.