During a high school basketball game, star athlete Mason "Horse" Raymore is haunted by visions of a burned man before mysteriously bursting into flames and dying. Months later, transfer student Chrys Willet inherits Mason's old locker and finds a skull-shaped whistle. When provoked by Mason's former teammate Dean, both he and Chrys are sent to detention by Mr. Craven, along with her cousin Rel, Dean's girlfriend Grace, and Ellie, a smart girl with diabetes.
After detention, Craven confiscates the whistle and, planning to sell it, blows it to test its condition, while Rel later sneaks back and steals it. Unbeknownst to Rel, Craven — who is constantly smoking — is soon killed by a grotesque apparition of himself that forcefully crushes his lungs. Later, the detained students also blow the whistle, whose sound causes them to be haunted by their own apparitions.
The next morning, Craven's death is reported as extreme stage lung cancer, which baffles those who knew him since he exhibited none of the symptoms from the day prior. Chrys and Ellie later learn from Mason's occult-collecting grandmother, Ivy, that the whistle is an Aztec death whistle inscribed with the phrase "summon your death". Anyone who hears it becomes stalked and is eventually killed by a manifestation of their destined demise. Despite their attempts to warn the others, Grace dies after rapidly aging into an old woman, and Dean is later killed in a manner resembling a car crash. When Chrys, Ellie, and Rel visit Ivy on her deathbed, she reveals that the curse can be avoided by marking another person with their blood, while their respective demise is nearby, and transferring it to them before dying.