First, associate's degrees offered by community colleges in US are not recognized or accepted elsewhere. So you have a serious problem proving to visa officials that you will have credentials recognized, accepted by employers in your country. You MUST return to your country immediately upon completion or termination of full-time studies. So having credentials which are recognized in your country matter a great deal.
Community colleges rarely have dorms, on-campus housing & other facilities. You will have to rent, furnish, etc, an apartment near campus, and that's very expensive. Community colleges might sound cheap, but for foreign students, they can get very expensive. CCs are designed for local residents - young people still living at home with their parents! You fail to state which community college, or even which state, but in some areas, rent alone for an efficiency or studio (one room, not one bedroom) can run $1000-2000/month, plus utilities, etc. And you will need to buy furniture & furnishings, etc. You must prove you have sufficient funds for all school + living expenses + return transportation to your country to apply for any student visa. Do you & your parents have the money? Even going to community college, expect to prove you have at least USD50,000/year to pay for everything.
Before you apply for student visa, you must pay your deposits (or first term tuition & fees) to confirm acceptance & obtain an I-20 form from the school. You must have that I-20 form before you can apply for student visa. You need to apply for the student visa 90-120 days prior to the start of classes to allow processing time, scheduling your visa interview at the nearest US consulate to your home, etc.
From your limited info here, it does not look good for you to get a student visa. You are not ready to apply!
BTW, student visas are temporary NON-immigration visas issued on the condition that foreign students return to their country immediately upon completion or termination of full-time studies. And you are strictly prohibited from working. Your question does NOT belong under immigration since you absolutely cannot & will not remain. Any suspicion that you are not returning to your own country promptly guarantees you will not get any temporary visa. That's visa FRAUD, and gets you permanent bar to entry to the country - and all countries US shares info with (practically every country on the planet). This goes under Study Abroad, not immigration, and is being moved to the proper category here.