How do you get someone to pay attention to you?

It depends. If you like a boy or something and you dont know him, maybe start talking to him, and act interested in him or vice versa if you're a guy and you like a girl.

Otherwise, just try starting a conversation with the person. It may help to break the ice, you never know.