how do you make a sound only hearable by one person

Hm, can’t this be done by only playing the sound in the clients version of the game instead of letting the server replicate it to everyone?