How to make a sound play hitmarker on enemy

how would I make a sound play when an enemy gets hit by a bullet?
this will also help me with eventually figuring out gun sounds and whatnot, but that’s later, I just need to know how to get a sound to play (this sound needs to be selected by an attribute) at the player when an enemy is hit