How do you make good loyal friends in late 20s

Having trouble with past friends and would like to connect with good people