Your lawyer, court appointed public defender will have the best answer. It will depend on your past history, exact crime offense, area you reside.
Attempted robbery is a big deal.
In any case it will cost time and $$$, community service, probation, along with a record. Good luck, see your attorney.