GLASGOW, KY - It probably sounded like a good idea on paper.

A high school chemistry teacher in Glasgow, Kentucky thought he'd impress his students by creating a fireball on the ceiling.

There were ooohs and ahhhs on the first attempt, but the second brought heat and flames so intense they set off the sprinklers in the teacher's classroom.

Oh course, one of his students was videotaping the whole thing on his smartphone, and caught students and the teacher himself scrambling from the classroom as the sprinklers drenched them with water.

Final grade? Epic fail.