How to track something

in my space battle game i want to be able to press T and have “select next targret” ablities. how to i do this? with a box like target sign over it? and how do you attach an explosion to a bullet hittin gsomething. not a image but a real explosion that plays through and then fads away.