How to deal with being constantly rejected?

Hi I'm a 31 one year old female and I never had a boyfriend and am constantly being rejected by guys, either a guy I like is not interested or is taken orrrr pretends and tricks me just to show that he wasn't interested in me but another girl, I'm writing this because I'm starting to lose all hope, everyone in my family tells me I'm cute and other people tell me I'm cute but I rarely get hit on or turn heads and I tried online dating and but when the guys talk to me they lose interest and I can't seem to get a guy at all it seems I'm very confused and yes I'm really going through this, I see girls my age or younger or older either in the same situation or happily in a relationship or just in a relationship, the ones I see that are in a relationship makes me sad because I want to know how it is to have someone who cares and loves you and you love and care for them

Also there was this one guy he is 23 and I am 31 but he has a girlfriend and kid, I really liked him so much, I held onto him and felt how soft he was and I could feel the spark between us, I checked both of our birthdays online and it said we have a 90% compatibility so I knew the spark was there and I wasn't crazy and he knew it too but I don't think he was interested like that because he's deeply in love with his girlfriend, I just wished it was me, why can't that happen to me I don't understand

He was so very nice to and he made blush, I felt really safe with him, I know of our age difference but I didn't care, but I understand he has a girlfriend

I'm going through a depression now and don't really enjoy the hobbies I used too because the new hobby I'm taking up is trying to grow up so I'm sad and I'm not looking for pity, just advice!

Updates
1 y
I don't know if this helps but I would consider myself an introvert and my personality is mostly silly so I don't know honestly I'm just looking for advice please be nice thank you and also I was really nervous to post this but yeah anyway thanks for any advice.
Updates
1 y
Thanks so much for the advice I really appreciate it and will take it seriously I do need to hit the gym and diet so that is very important, so thanks for that really (❁´◡`❁)

And as for the other advice I definitely will stay close to my family in general so thanks so very much 🙏

I really was so nervous to post this but I'm glad I got some useful advice :)

Thanks so much and have a great weekend/rest of the year! 🌻
How to deal with being constantly rejected?
Post Opinion