A 12-year-old girl accused of plotting to kill a friend to curry favor with a fictional character she read stories about online shows signs of mental illness and should be in a hospital, her defense attorney said Tuesday.

The girl and another 12-year-old have been charged as adults with first-degree attempted homicide in a stabbing that nearly killed another child the same age. The two girls told investigators they plotted for months to kill their friend because a character called Slenderman required them to kill someone before they could become his "proxy."

Both girls are being held at a juvenile detention center. Anthony Cotton, the attorney for one girl, said a judge rejected his request Monday to have the girl transferred to a mental health facility, but he will renew that request when she returns to court next week.

"From what I know, we've got a young girl here who has no previous criminal record at all, and if the record is accurate, probably suffers from very serious mental health issues," said Cotton, who planned to meet with the girl later Tuesday.

Cotton said the girl's parents are trying to figure out whether there were any signs they may have missed. But he said some things, such as make-believe, would not necessarily be alarming in a child.

The girls told investigators they read about Slenderman on the horror website creepypasta.wikia.com. It's not clear whether they got access to the website at home or at school, but a school administrator said employees were reviewing various websites to see if they should be blocked after the stabbing.

Read more at KFI News