Slow Motion

In my game, lots of things shoot at me, I want so that when A bullet comes a few feet away from me, everything slows down a lot until it hits me, any way how to do this?

You can compare the distance to each bullet and when this distance is less than some constant value you can start a coroutine which will decrease the Time.timeScale value to like 0.5, which will make your game 2 times slower.