Devontay Shields was arrested at Chicago's Union Station over the weekend.
A text message allegedly sent by Shields lays out a plan to take a boy from a school by luring him with candy and toys.
Prosecutors say Shields had recently purchased children's toys and zip ties and had those items when he was arrested.
He is now charged with attempted kidnapping.
INTERACTIVE SAFETY TRACKER Track crime and safety in your neighborhood