If you don't want to be beaten up, either stand up for yourself, or just do the right thing, justice. If someone hits you, bullies, etc, its not tolerated. If its not in your school, the school is a scumbag school.
Make yourself relax and go away with the bullies. Go away like 15ft away from them.