# Enum.RollOffMode

Roblox Engine API enum from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- HTML page: https://rapi.sleaze.dev/enums/RollOffMode/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/enums/RollOffMode

How `Sounds` parented to a [`BasePart`](https://rapi.sleaze.dev/classes/BasePart.md) or [`Attachment`](https://rapi.sleaze.dev/classes/Attachment.md) attenuate (fade out) as the distance between the listener and the parent increases.

## Items

| Name | Value | Description |
| --- | --- | --- |
| `Inverse` | 0 | Volume attenuates from [`Sound.RollOffMinDistance`](https://rapi.sleaze.dev/classes/Sound.md) in an inverse manner, mirroring how sounds attenuate in the real world. This is done through [`Sound.RollOffMinDistance`](https://rapi.sleaze.dev/classes/Sound.md)/`distance`, where `distance` is the `Vector3.Magnitude` between the audio source and the audio listener. |
| `Linear` | 1 | Volume attenuates between [`Sound.RollOffMinDistance`](https://rapi.sleaze.dev/classes/Sound.md) and [`Sound.RollOffMaxDistance`](https://rapi.sleaze.dev/classes/Sound.md) with a linear relationship. This is done through ([`Sound.RollOffMaxDistance`](https://rapi.sleaze.dev/classes/Sound.md)/`distance`)/([`Sound.RollOffMaxDistance`](https://rapi.sleaze.dev/classes/Sound.md)-[`Sound.RollOffMinDistance`](https://rapi.sleaze.dev/classes/Sound.md)), where `distance` is the `Vector3.Magnitude` between the audio source and the audio listener. |
| `LinearSquare` | 2 | Volume attenuates between [`Sound.RollOffMinDistance`](https://rapi.sleaze.dev/classes/Sound.md) and [`Sound.RollOffMaxDistance`](https://rapi.sleaze.dev/classes/Sound.md) with a linear squared relationship. This is done through squaring [`Linear`](https://rapi.sleaze.dev/enums/RollOffMode.md). |
| `InverseTapered` | 3 | A hybrid model which follows the [`Inverse`](https://rapi.sleaze.dev/enums/RollOffMode.md) model when close to [`Sound.RollOffMinDistance`](https://rapi.sleaze.dev/classes/Sound.md) and the [`LinearSquare`](https://rapi.sleaze.dev/enums/RollOffMode.md) model when close to [`Sound.RollOffMaxDistance`](https://rapi.sleaze.dev/classes/Sound.md). This is done by taking the lesser of [`Inverse`](https://rapi.sleaze.dev/enums/RollOffMode.md) and [`LinearSquare`](https://rapi.sleaze.dev/enums/RollOffMode.md). |

## Used by

Each entry lists the class, then the role and names of the members that use this type.

- [Sound](https://rapi.sleaze.dev/classes/Sound.md): property `RollOffMode`
- [VideoFrame](https://rapi.sleaze.dev/classes/VideoFrame.md): property `RollOffMode`
