If you want the phone number of a girl you admire or are attracted to, prove yourself to be a trustworthy, loyal and dependable friend first. These are the things I’ve observed as a female that gain our approval more than that Tik Tok cringe like “If she pulls away from a hug, pull her back”. It might be hard and seem like a lot, but you’ll definitely gain her favor.
Please respect her. Don’t get all touchy and creepy, we definitely hate that. If she doesn’t want to talk about something, then don’t bring it back up (ex. You ask her an awkward question or something personal). Don’t start off the conversation talking about something gross; go for something general.
I know it might sound like a stereotype, but ask her about her interests. You know when you’ve struck gold because she might start smiling a lot longer than normal, and she’ll go on quite a bit. And hopefully you are genuinely interested in it. If you aren’t genuinely interested in what she’s talking about, then at least lean towards her a little while she speaks (assuming you’re sitting across from each other) and process what she’s saying. If you are interested in what she’s saying, you’ll probably find yourself doing this automatically (ex. You’re both artists talking about different medias and pencils and paints)
If she needs a favor, then do it, if it is within reason. Show you can be there for her when she needs someone, but reasonably. Don’t throw yourself over the puddle so she doesn’t get her shoes wet and let her walk all over you.