Help with audio: how to use rolloff max and min distance?

how am i supposed to use it? why did they remove max distance? it was much easier. i have set roll off min and max to 1 and i can still hear the audio everywhere

3 Likes

u might want to make sound regions
helpful and cool

They’re the exact same.

RollOffMinDistance is the minimum distance, in studs, at which a 3D Sound (direct child of a BasePart or Attachment) will begin to decrease in volume.

RollOffMaxDistance is the maximum distance a 3D sound can be heard.

I’m guessing the switch was to favour the RollOffMode property, though I guess now it just makes scripting 3D audio longer.

You can find the APIs here:
RollOffMinDistance
RollOffMaxDistance
RollOffMode

16 Likes

It seems setting the RollOffMinDistance at a low value such as 1 and setting the RollOffMaxDistance at a decently high value such as 200 as well as setting the RollOffMode to Linear makes a good balance where you cannot hear sound when you are far away

10 Likes

For everyone having this issue, remember to set the sound in a part, not a model. Else you will hear the sound everywhere

35 Likes

This should be marked as the right answer…

3 Likes