How to deal with ranged armies?

Hi all,

In my local gaming group I go up against a lot of ranged armies (tau, CK, aeldari, imperial gaurd). I can’t seem to figure out how to play against them. I get tabled too fast or get too behind on primary. Any tips or suggestions?

Thanks!