Josh Allinott didn't think he was good enough to try out for his high school's basketball team this year, but a lucky shot captured on camera shows he's got game.

The 17-year-old Grade 11 student at Ancaster's Bishop Tannos Catholic Secondary School posted a now-viral video on YouTube. Josh won't be in the NBA slam dunk competition any time soon. He tried three times to dunk, failing each one.

You'll have to watch to see what happens when he gives up and walks towards his camera to stop documenting his failed attempts.

"I was with some friends playing pick up and dunked during the game," Allinott told CBC Hamilton. "They left and I tried to see if I could dunk again."

Alone in the school gym, Allinott placed his iPhone on the bleachers and hit record, trying to capture proof that he could in fact dunk a basketball.

The result may have been better.

"A lot of people have seen it at school," he said. "They think it's really funny... a cool shot."

Allinott posted the video in November and the last time he checked, it only had 1200 views. But his gym teacher recently alerted him to its popularity — it's gained over 100,000 views in the past week.

"I was freaking out when I found out," Allinott said.

Next year, he might even try out for the basketball team again.