A South Carolina 7-year-old brought a knife to school on Wednesday and threatened to kill his classmates and teacher because he was inspired by the movie "Chucky," according to a local sheriff's office.

The student, who is 7-years-old, allegedly brought a 12-inch-long knife to Cherryvale Elementary School in Sumter, South Carolina, on Wednesday and threatened his teacher and classmates, according to the Sumter County Sheriff's Office.

When the student was asked why he brought the knife to school, he said that "he wanted to kill the teachers and then the students by stabbing them in the heart," officials said.

The 7-year-old said that he "knew how to do this from watching the movie, ‘Chucky,’" the sheriff's office said in a Facebook post.

SOUTH CAROLINA MOTHER SHOT TO DEATH IN FRONT OF YOUNG CHILDREN IN KROGER PARKING LOT

A South Carolina 7-year-old brought a knife to school on Wednesday and threatened to kill his classmates and teacher because he was inspired by the movie

A South Carolina 7-year-old brought a knife to school on Wednesday and threatened to kill his classmates and teacher because he was inspired by the movie "Chucky," according to a local sheriff's office. (Sumter County Sheriff's Office)

Deputies said the knife carried by the student had a seven-inch blade.

SOUTH CAROLINA TROOPER, SPEEDING DRIVER FIRE SHOTS AT EACH OTHER

 Cherryvale Elementary School

The student, who's 7-years-old, allegedly brought a 12-inch-long knife to Cherryvale Elementary School in Sumter, South Carolina, on Wednesday and threatened his teacher and classmates, according to the Sumter County Sheriff's Office. (Google Maps)

Officials said no individuals were hurt as a result of the incident. 

CLICK HERE TO GET THE FOX NEWS APP

Chucky

"Give Me Something Good to Eat" Episode 102 -- Pictured: Chucky  (Photo by: SYFY/NBCU Photo Bank via Getty Images)

Deputies are withholding the kindergartner's name due to his age, and said an investigation into the incident is ongoing.

Fox News Digital reached out to Sumter School District for comment.