I just go for it and don't worry about rejection. I'm not sure why people would freak out that you say you like them and want to hang out. Like, if it's a stranger, just say, "Hey, you seem like a cool person, and l would like to get to know you. Can I get your number?"