Editor's note: The man was arrested outside of Kelly Middle School. Eugene police previously identified the location as neighboring Howard Elementary School, but that information was corrected.

A man not wearing pants was taken to a local hospital for an evaluation after showing up outside a Eugene school.

The man, who Eugene police did not publicly identify, was in front of Kelly Middle School in the River Road area of west Eugene at 7:55 a.m. Tuesday, just as school was about to begin. The man was wearing only a white T-shirt when he began yelling and then attempted to get into the school, police spokesperson John Hankemeier said. A bystander detained the man until police arrived.

Meanwhile, school staff got students inside the building. The Eugene Springfield Fire Department responded to assist Eugene police on scene.

The man is being evaluated at a hospital, Hankemeier said. It is unclear if he will face any charges.