Need help with servo ASAP!

What I mean when I say the "code reads through" is that it uploads normally, and the servo is powered by my laptop as well, it's attached to a breadboard. I'm sorry for not being clear, I'm still fairly new at this.
Thanks.