Can lawyers take students to the detention center?

You can't.

Lawyers cannot bring people into the detention center, especially family members. Defense lawyers can meet and communicate with criminal suspects and defendants in custody, and lawyers are not allowed to take students to detention centers. If you are under criminal detention or arrested, only a lawyer can see you. Under existing laws, family or friends cannot meet suspects except when they attend court.