Animation with sound multiplayer

how can i have a sound with an animation with multiplayer so if i was far from it i wont hear it

Use a so called attenuation for your sound. It defines distance falloff etc for sounds in general.