LANSING, Mich. (Michigan News Source)Millions in state safety funding were on the table for Oakland County schools. Nearly half the districts left it there.

According to the Michigan Department of Education, 12 of Oakland County’s 27 public school districts declined Section 31aa funds this year, opting out of money earmarked for student safety and mental health because of legal conditions tied to the grants.

MORE NEWS: Different City, Same SIG: Minneapolis Gun Drama Hits Uncomfortably Close to Home

Districts that accepted the funding were required to agree to broad post-incident investigations and waive certain legal privileges following a mass-casualty event—language several school boards said was vague and legally risky.

Based on district estimates of about $135 per student, the opt-out translates to roughly $6.9 million in funding left on the table across Oakland County.

Districts choosing to forgo the funding include Berkley, Brandon, Holly, Huron Valley, Lake Orion, Lamphere, Madison, Novi, Pontiac, Royal Oak, Southfield, and West Bloomfield.

“Huron Valley Schools opted out as a result of the constitutional violations and the coercive nature with which the statute was written,” Superintendent Paul Salah said, noting the district is part of ongoing litigation challenging the conditions.

Statewide, roughly 82% of districts opted in, according to Bridge Michigan. Still, more than 30 districts have appealed a Court of Claims ruling that allowed the waiver provisions to stand.