2 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

RollOffMode

Enum which determines how Sounds parented to a BasePart or Attachment attenuate (fade out) as the distance between the listener and the parent increases.

Items

NameValueDescription
Inverse0Volume attenuates from Sound.RollOffMinDistance in an inverse manner, mirroring how sounds attenuate in the real world. This is done through Sound.RollOffMinDistance/distance, where distance is the Vector3.Magnitude between the audio source and the audio listener.
Linear1Volume attenuates between Sound.RollOffMinDistance and Sound.RollOffMaxDistance with a linear relationship. This is done through (Sound.RollOffMaxDistance/distance)/(Sound.RollOffMaxDistance-Sound.RollOffMinDistance), where distance is the Vector3.Magnitude between the audio source and the audio listener.
LinearSquare2Volume attenuates between Sound.RollOffMinDistance and Sound.RollOffMaxDistance with a linear squared relationship. This is done through squaring Linear.
InverseTapered3A hybrid model which follows the Inverse model when close to Sound.RollOffMinDistance and the LinearSquare model when close to Sound.RollOffMaxDistance. This is done by taking the lesser of Inverse and LinearSquare.

Inverse

Volume attenuates from Sound.RollOffMinDistance in an inverse manner, mirroring how sounds attenuate in the real world. This is done through Sound.RollOffMinDistance/distance, where distance is the Vector3.Magnitude between the audio source and the audio listener.

FieldValue
value0

Linear

Volume attenuates between Sound.RollOffMinDistance and Sound.RollOffMaxDistance with a linear relationship. This is done through (Sound.RollOffMaxDistance/distance)/(Sound.RollOffMaxDistance-Sound.RollOffMinDistance), where distance is the Vector3.Magnitude between the audio source and the audio listener.

FieldValue
value1

LinearSquare

Volume attenuates between Sound.RollOffMinDistance and Sound.RollOffMaxDistance with a linear squared relationship. This is done through squaring Linear.

FieldValue
value2

InverseTapered

A hybrid model which follows the Inverse model when close to Sound.RollOffMinDistance and the LinearSquare model when close to Sound.RollOffMaxDistance. This is done by taking the lesser of Inverse and LinearSquare.

FieldValue
value3