honestly we all do dumb things sometimes. you're what 17-18? you're allowed to mess up and do stupid stuff- its basically the whole teenage experience. it wasn't a good thing to do, but you understand that and you regret it, which is the most important thing :] i guarantee you they don't hate you; you didn't actually hurt anyone.
just get through it, if you're a year 13 you have barely weeks left, and if youre year 12 it'll go faster than you know it- and honestly everyone will probably forget about it, especially over summer. you're gonna be okay, forgive yourself. :]