George Pimentel / WireImage.com 1 / 49
George Pimentel / WireImage.com 1 / 49

According to court papers obtained by ET, Selena Gomez has obtained a restraining order against a man who allegedly threatened to kill the actress.

The legal documents state that a detective for the L.A. Police Department's Threat Management Unit suggested that the actress get a restraining order against Thomas Brodnicki, 46. According to the papers, Brodnicki admitted to a mental health professional that he "entertained thoughts of killing Ms. Gomez."

According to the documents, Brodnicki has a history of mental illness, causing the authorities to take his threats "extremely seriously."

Selena's mother, step-father and assistant are also protected under the order.

Related on Wonderwall & MSN:

Celebs who love PDA

Selena and more stars who make scary faces

Celeb couples who dress alike

Related stories on ETonline.com:

Stars Express Admiration for Robert Downey Jr.

Kevin Sorbo Reveals Near-Death Experience