Exposing yourself to children in Missouri is a Class D felony, so your 2 years probation and community service is generous. I don't know if, after you serve your 2 years probation with no other violations, and complete your community service requirement, the charges would be dismissed and there would be no record. You should ask your attorney that question. I also don't know if joining the military would be possible while on probation, or if your community service could be delayed or shortened if you joined the military. Your attorney and the prosecutor seem willing to work with you on this, which is nice. I would rely on their advice.