Star Wars is more fantasy than scifi.
Hence "A long long time ago in a galaxy far far away". Star Wars isn't some future of our civilization, it's a completely different galaxy.
So they don't necessarily have guns or gunpowder.
they actually do have slugthrowers, such as powder muskets. these were not pursued to the same degree as the more powerful blasters and are therefore used by more primitive tribes, such as the tusken raiders.
and as i said before, a jedi could easily stop a hail of bullets with the force, as all they really need to sense is the disturbance in the air. more powerful force users are forces to be reckoned with. they are quite literally capable of tearing apart an army single-handedly.
idk if im just rambling on here so take everything that isnt a direct response to ultimamax with a sizeable grain of salt as it is 12am and more importantly my personal opinion
ok im just rambling ill stop now