How do I fix this audio issue?

Hello, everyone! I have an audio issue for my fighting game, and it is that if for example 2 people are fighting and then the sword swings sounds play how can I make it so that people far away will not hear the sound? This may seem like a stupid question, but I have no idea how to fix it? Yes, I have tried the MaxRollOfDistance stuff but it still doesn’t work. I don’t have any script examples, because I deleted basically all of them because I couldn’t get it to work :sweat_smile: Please help me fix this, feel free to give me some script examples, too!

Sounds play based on where they are parented. If they’re not parented to a BasePart (ie Part, MeshPart, etc) or Attachment, they’ll play “globally”.

Make sure your sound is placed under a part/attachment and it should play based on the position of the part/attachment.

The docs have more details:

obraz_2025-02-17_211609130
there is RollOffMaxDistance setting in sound adjust it how you want however you have to remember to parent part audio to some part