I want to know how to fade sound using distance. When the player goes far, the sound should be low, and when the player goes near, the sound should be loud. Is it using RollOffMin and RollOffMax?
Currently, the sounds are in a Tool;
(this image shows what the sounds are parented to)
Regardless of how far the player is, the sound produced by the tool is loud and constant.
I would like the sound to diminish as Player A (listener) moves farther away from Player B’s tool.
RollOffMin is how far away the sound starts to decrease in volume.
RollOffMax is the max distance away someone could hear the sound.
So
distance from sound < RollOffMin == full volume
distance from sound between RollOffMin and RollOffMax == decreasingVolume
distance from sound > RollOffMax == no sound