Can a cop tell me where to go?

So I was walking with my friends and I guess I go to a ghetto school all my friends are black but it was just 3 of us we tried to go somewhere but the cops always follow us they don't like us and they know we all are in middle school but they treat us like we re breaking the law well I tried to walk somewhere with to of my friends to meet with the rest of my friends The cop told us to go home you guys aren t going that way we said were just gunna meet some people he said I don't care I don't really like getting smart with them because I don't know what they would do I told the cop he can't do that he told me he dosent give a **** can someone just tell me if cops can order me around where to go also if IIm standing still on a side walk for a couple seconds maybe a minute in Orlando can you get detained in Orlando Florida for that

Nope.

Anonymous is absolutely right. Just keep walking. If however, he stops you or threatens to stop you, then you need to push the questions back on him. Ask him if you are being held (detained). If he provides no reason, then ask to be on your way (the classic "Am I free to go?"). If he says you are not free to go, then he is detaining you. If he is detaining you then he needs to have a reason.

Check the video below. It is a short, famous, and viral video done by an attorney called DON'T TALK TO THE POLICE. You will find it very useful.

Also, watch second and much shorter video (3 minutes). It is Terry Bressi executing the technique to perfection at an INTERIOR border patrol roadblock in Arizona. I personally know Terry and he puts up with this nonsense all the time on his way to work.