14 min read

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

AudioListener

Inherits from: Instance → Object

AudioListener records an audio stream from its surrounding AudioEmitters in the 3D world. It provides a single Output pin which can be connected to other pins via Wires. If the parent is an Attachment, Camera, or PVInstance, the parent's world CFrame will be used for listening. If the parent is not one of these classes, the AudioListener effectively hears nothing.

Inherits from: Instance

Memory category: Internal

Code samples: View on Creator Hub (audio-wiring---camera-listener).

Properties

NameType / ReturnsDescription
AudioListener.AcousticSimulationEnabledbooleanDetermines whether acoustic simulation should be used for this AudioListener.
AudioListener.AngleAttenuationBinaryStringRepresents how the perceived volume of the emitted sound changes based on the angle between a AudioEmitter and the LookVector associated with the AudioListener.
AudioListener.AudioInteractionGroupstringControls which AudioEmitters are audible to this AudioListener.
AudioListener.DistanceAttenuationBinaryStringRepresents how the perceived volume of emitted sounds change as the distance between AudioEmitters and the AudioListener increases.
AudioListener.PositionInstanceInstanceThe Instance whose position and orientation is used as the listener's position if PositionType is set to ListenerPositionType.Instance.
AudioListener.PositionTypeListenerPositionTypeDetermines how the AudioListener determines its 3D location.
AudioListener.SimulationFidelityAudioSimulationFidelityControls how detailed the audio simulation should be for this AudioListener.

Inherited from Instance

NameType / ReturnsDescription
Instance.ArchivablebooleanDetermines if an Instance and its descendants can be cloned using Instance:Clone(), and can be saved/published.
Instance.archivableboolean
Instance.CapabilitiesSecurityCapabilitiesThe set of capabilities allowed to be used for scripts inside this container.
Instance.IsInSandboxbooleanIndicates whether the instance is inside a sandboxed container.
Instance.NamestringA non-unique identifier of the Instance.
Instance.ParentInstanceDetermines the hierarchical parent of the Instance.
Instance.PredictionModePredictionModeReflects the client-side prediction mode applied to the instance under server-authoritative physics.
Instance.RobloxLockedbooleanA deprecated property that used to protect CoreGui objects.
Instance.SandboxedbooleanWhen enabled, the instance can only access abilities in its Capabilities list.
Instance.UniqueIdUniqueIdA unique identifier for the instance.

Inherited from Object

NameType / ReturnsDescription
Object.ClassNamestringA read-only string representing the class this Object belongs to.
Object.classNamestring

AudioListener.AcousticSimulationEnabled

Determines whether sound being heard by this AudioListener shoud automatically implement features of acoustic simulation, such as occlusion (being muffled through walls), diffraction (bending around corners), and reverberation (echoing off of walls), when being sourced from an AudioEmitter. Note that the AudioEmitter also needs its AcousticSimulationEnabled property set to true for the effects to occur.

FieldValue
typeboolean
security{"read":"None","write":"None"}
thread safetyReadSafe
categorySimulation
serialization{"can_load":true,"can_save":true}
capabilities["Audio"]

AudioListener.AngleAttenuation

Represents a volume-over-angle curve that affects how loudly a AudioListener will hear the AudioEmitter, based on the angle between them and the LookVector associated with the AudioListener.

This property is internal and can't be accessed by scripts; it exists to support replication. See SetAngleAttenuation() for usage details.

FieldValue
typeBinaryString
security{"read":"RobloxEngineSecurity","write":"RobloxEngineSecurity"}
thread safetyReadSafe
categoryListening
serialization{"can_load":true,"can_save":true}
capabilities["Audio"]

AudioListener.AudioInteractionGroup

Controls which AudioEmitters are audible to this AudioListener. Emitters that share an interaction group can be heard by this Listener.

FieldValue
typestring
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryInteractions
serialization{"can_load":true,"can_save":true}
capabilities["Audio"]

AudioListener.DistanceAttenuation

Represents a volume-over-distance curve that affects how loudly the AudioListener hears any AudioEmitters, based on the distance between them.

This property is internal and can't be accessed by scripts; it exists to support replication. See SetDistanceAttenuation() for usage details.

FieldValue
typeBinaryString
security{"read":"RobloxEngineSecurity","write":"RobloxEngineSecurity"}
thread safetyReadSafe
categoryListening
serialization{"can_load":true,"can_save":true}
capabilities["Audio"]

AudioListener.PositionInstance

This property is only functional when PositionType is set to ListenerPositionType.Instance. In that scenario, this property determines which Instance will be used to determine the position of the AudioListener when hearing spatial audio from AudioEmitters.

If set to an instance without a position or nil, the AudioListener will not hear anything.

FieldValue
typeInstance
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryListening
serialization{"can_load":true,"can_save":true}
capabilities["Audio"]

AudioListener.PositionType

The method by which the AudioListener determines its 3D location (the point from which any nearby AudioEmitters can be heard). Defaults to ListenerPositionType.Parent.

FieldValue
typeListenerPositionType
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryListening
serialization{"can_load":true,"can_save":true}
capabilities["Audio"]

AudioListener.SimulationFidelity

Deprecated.

Controls how detailed the audio simulation should be for this AudioListener, similar to MeshPart.CollisionFidelity or MeshPart.RenderFidelity.

AudioListeners and AudioEmitters which disagree on the necessary level of detail will use the less-detailed option.

FieldValue
typeAudioSimulationFidelity
tags["Deprecated"]
security{"read":"None","write":"None"}
thread safetyReadSafe
categorySimulation
serialization{"can_load":true,"can_save":true}
capabilities["Audio"]

Methods

NameType / ReturnsDescription
AudioListener:GetAngleAttenuationDictionaryGets the angle attenuation curve that the AudioListener is using, or an empty table if it's using the default curve.
AudioListener:GetAudibilityForfloatCalculates how audible an AudioEmitter is for this listener
AudioListener:GetConnectedWiresListReturns an array of Wires that are connected to the specified pin.
AudioListener:GetDistanceAttenuationDictionaryGets the distance attenuation curve that the AudioListener is using, or an empty table if it's using the default curve.
AudioListener:GetInputPinsArrayGets the list of pins that Wire can use in Wire.TargetName to connect to this instance via its Wire.TargetInstance property.
AudioListener:GetInteractingEmittersListLists all AudioEmitters that this listener is capable of hearing.
AudioListener:GetOutputPinsArrayGets the list of pins that Wire can use in Wire.SourceName to connect to this instance via its Wire.SourceInstance property.
AudioListener:SetAngleAttenuation()Sets the angle attenuation curve that the AudioListener should use, or uses a constant curve of volume 1 if none is provided.
AudioListener:SetDistanceAttenuation()Sets the distance attenuation curve that the AudioListener should use, or uses an inverse rolloff curve if none is provided.

Inherited from Instance

NameType / ReturnsDescription
Instance:AddTag()Applies a tag to the instance.
Instance:childrenInstancesReturns an array of the object's children.
Instance:ClearAllChildren()This method destroys all of an instance's children.
Instance:CloneInstanceCreate a copy of an instance and all its descendants, ignoring instances that are not Archivable.
Instance:cloneInstance
Instance:Destroy()Sets the Instance.Parent property to nil, locks the Instance.Parent property, disconnects all connections, and calls Destroy() on all children.
Instance:destroy()
Instance:FindFirstAncestorInstance?Returns the first ancestor of the Instance whose Instance.Name is equal to the given name.
Instance:FindFirstAncestorOfClassInstance?Returns the first ancestor of the Instance whose Object.ClassName is equal to the given className.
Instance:FindFirstAncestorWhichIsAInstance?Returns the first ancestor of the Instance for whom Object:IsA() returns true for the given className.
Instance:FindFirstChildInstance?Returns the first child of the Instance found with the given name.
Instance:findFirstChildInstance
Instance:FindFirstChildOfClassInstance?Returns the first child of the Instance whose ClassName is equal to the given class name.
Instance:FindFirstChildWhichIsAInstance?Returns the first child of the Instance for whom Object:IsA() returns true for the given className.
Instance:FindFirstDescendantInstance?Returns the first descendant found with the given Instance.Name.
Instance:GetActorActor?Returns the Actor associated with the Instance, if any.
Instance:GetAttributeVariantReturns the value which has been assigned to the given attribute name.
Instance:GetAttributeChangedSignalRBXScriptSignalReturns an event that fires when the given attribute changes.
Instance:GetAttributesDictionaryReturns a dictionary of the instance's attributes.
Instance:GetChildrenInstancesReturns an array containing all of the instance's children.
Instance:getChildrenInstances
Instance:GetDebugIdstringReturns a coded string of the debug ID used internally by Roblox.
Instance:GetDescendantsInstancesReturns an array containing all of the descendants of the instance.
Instance:GetFullNamestringReturns a string describing the instance's ancestry.
Instance:GetStyledVariantReturns the styled or explicitly modified value of the specified property, or else the default property value if it hasn't been styled/modified.
Instance:GetStyledPropertyChangedSignalRBXScriptSignalReturns an event that fires when the given style property changes on the instance.
Instance:GetTagsArrayGets an array of all tags applied to the instance.
Instance:HasTagbooleanCheck whether the instance has a given tag.
Instance:IsAncestorOfbooleanReturns true if an Instance is an ancestor of the given descendant.
Instance:IsDescendantOfbooleanReturns true if an Instance is a descendant of the given ancestor.
Instance:isDescendantOfboolean
Instance:IsPropertyModifiedbooleanReturns true if the value stored in the specified property is not equal to the code-instantiated default.
Instance:QueryDescendantsInstancesReturns an array containing all descendants of the instance that match the selector string.
Instance:Remove()Sets the object's Parent to nil, and does the same for all its descendants.
Instance:remove()
Instance:RemoveTag()Removes a tag from the instance.
Instance:ResetPropertyToDefault()Resets a property to its default value.
Instance:SetAttribute()Sets the attribute with the given name to the given value.
Instance:WaitForChildInstanceReturns the child of the Instance with the given name. If the child does not exist, it will yield the current thread until it does.

Inherited from Object

NameType / ReturnsDescription
Object:GetPropertyChangedSignalRBXScriptSignalGet an event that fires when a given property of the object changes.
Object:IsAbooleanReturns true if an object's class matches or inherits from a given class.
Object:isAboolean

AudioListener:GetAngleAttenuation

Returns a table mapping angle to volume. Keys are numbers between 0 and 180 (inclusive), while values are numbers between 0 and 1 (inclusive) describing how volume attenuates depending on direction. This method returns an empty table if the default angle attenuation curve is being used.

Returns

TypeDescription
DictionaryTable mapping angle to volume, as described above.
FieldValue
tags["CustomLuaState"]
securityNone
thread safetyUnsafe
capabilities["Audio"]

AudioListener:GetAudibilityFor

Calculates how audible an AudioEmitter is for this listener. The resulting volume, ranging from 0 to 1, accounts for distance and angle attenuation on both the emitter and listener. Use this to drive game logic that depends on perceived loudness, such as proximity UI indicators or mechanics that scale with how clearly a sound source is heard.

Parameters

NameTypeDefaultDescription
emitterAudioEmitterThe AudioEmitter whose audibility should be calculated relative to this listener.

Returns

TypeDescription
floatA number between 0 and 1 representing the combined volume after distance and angle attenuation from both the emitter and listener.
FieldValue
securityNone
thread safetyUnsafe
capabilities["Audio"]

AudioListener:GetConnectedWires

Returns an array of Wires that are connected to the specified pin. AudioListener has one "Output" pin.

Parameters

NameTypeDefaultDescription
pinstringAn input or output pin on this instance

Returns

TypeDescription
ListAn array of Wires
FieldValue
securityNone
thread safetyUnsafe
capabilities["Audio"]

AudioListener:GetDistanceAttenuation

Returns a table mapping distance to volume. Keys are numbers greater than or equal to 0, while values are numbers between 0 and 1 (inclusive) describing how volume attenuates over distance. This method returns an empty table if the default distance attenuation curve is being used.

Returns

TypeDescription
DictionaryA table mapping distance keys to volume values, or an empty table if the default curve is being used.
FieldValue
tags["CustomLuaState"]
securityNone
thread safetyUnsafe
capabilities["Audio"]

AudioListener:GetInputPins

Gets the list of pins that Wire can use in Wire.TargetName to connect to this instance via its Wire.TargetInstance property.

For AudioListener, there are none.

Returns

TypeDescription
ArrayAn array of strings representing valid pin names.
FieldValue
securityNone
thread safetyUnsafe
capabilities["Audio"]

AudioListener:GetInteractingEmitters

Returns an array of AudioEmitters that share an AudioInteractionGroup with the listener.

Returns

TypeDescription
ListAn array of AudioEmitters that share an AudioInteractionGroup with this listener.
FieldValue
securityNone
thread safetyUnsafe
capabilities["Audio"]

AudioListener:GetOutputPins

Gets the list of pins that Wire can use in Wire.SourceName to connect to this instance via its Wire.SourceInstance property.

For AudioListener, this is Output only.

Returns

TypeDescription
ArrayAn array of strings representing valid pin names.
FieldValue
securityNone
thread safetyUnsafe
capabilities["Audio"]

AudioListener:SetAngleAttenuation

Sets a volume-over-angle curve that affects how loudly a AudioListener will hear the AudioEmitter, based on the angle between them and the LookVector associated with the AudioListener.

The curve is represented by a table mapping angle keys to volume values. Keys are expected to be unique numbers between 0 and 180 (inclusive), while values are expected to be numbers between 0 and 1 (inclusive). Tables containing up to 400 key-value pairs are supported.

The volume of a AudioEmitter from the perspective of the AudioListener at an angle a is determined by linearly interpolating between the volume levels for the points on the curve whose angle values are directly above and below a. If there is either no point below a or no point above a, the volume level of the other point is chosen. Essentially, the curve is a sequence of points connected by straight lines, and beyond its left and right endpoints the curve extends outward at their respective volume levels.

This volume will be multiplied with the volumes from all other attenuation curves (including the ones on the sending AudioEmitter) to obtain the final audibility.

If the table is empty or nil, the AudioListener defaults to using an angle attenuation curve with the constant volume value of 1.

Parameters

NameTypeDefaultDescription
curveDictionaryA table mapping angle keys (0 to 180) to volume values (0 to 1), or an empty/nil table to use the default constant volume of 1.

Returns

TypeDescription
()
FieldValue
tags["CustomLuaState"]
securityNone
thread safetyUnsafe
capabilities["Audio"]

Code samples: View on Creator Hub (audio-wiring---directional-listener).

AudioListener:SetDistanceAttenuation

Sets a volume-over-distance curve that affects how loudly the AudioListener will hear any AudioEmitters, based on the distance between them. This is useful when you want a particular listener to have an extended or shortened hearing range — for example, a character with enhanced hearing — without modifying the emitting AudioEmitter or separating emitters and listeners into different interaction groups.

The curve is represented by a table mapping distance keys to volume values. Keys are expected to be unique numbers greater than or equal to 0, while values are expected to be numbers between 0 and 1 (inclusive). Tables containing up to 400 key-value pairs are supported.

The volume of a AudioEmitter from the perspective of the AudioListener at a distance d is determined by linearly interpolating between the volume levels for the points on the curve whose distance values are directly above and below d. If there is either no point below d or no point above d, the volume level of the other point is chosen. Essentially, the curve is a sequence of points connected by straight lines, and beyond its left and right endpoints the curve extends outward infinitely at their respective volume levels.

This volume will be multiplied with the volumes from all other attenuation curves (including the ones on the sending AudioEmitter) to obtain the final audibility.

If the table is empty or nil, the AudioListener defaults to applying a constant volume of 1 everywhere.

Parameters

NameTypeDefaultDescription
curveDictionaryA table mapping distance keys (greater than or equal to 0) to volume values (0 to 1), or an empty/nil table to use the default constant volume of 1 everywhere.

Returns

TypeDescription
()
FieldValue
tags["CustomLuaState"]
securityNone
thread safetyUnsafe
capabilities["Audio"]

Events

NameType / ReturnsDescription
AudioListener.WiringChangedFires when another instance is connected to or disconnected from the AudioListener via a Wire.

Inherited from Instance

NameType / ReturnsDescription
Instance.AncestryChangedFires when the Instance.Parent property of this object or one of its ancestors is changed.
Instance.AttributeChangedFires whenever an attribute is changed on the Instance.
Instance.ChildAddedFires after an object is parented to this Instance.
Instance.childAdded
Instance.ChildRemovedFires after a child is removed from this Instance.
Instance.DescendantAddedFires after a descendant is added to the Instance.
Instance.DescendantRemovingFires immediately before a descendant of the Instance is removed.
Instance.DestroyingFires immediately before (or is deferred until after) the instance is destroyed via Instance:Destroy().
Instance.StyledPropertiesChangedFires whenever any style property is changed on the instance, including when a property is set to nil.

Inherited from Object

NameType / ReturnsDescription
Object.ChangedFires immediately after a property of the object changes, with some limitations.

AudioListener.WiringChanged

Event that fires after a Wire becomes connected or disconnected, and that Wire is now or was previously connected to a pin on the AudioListener and to some other wirable instance.

Parameters

NameTypeDefaultDescription
connectedbooleanWhether the instance got connected or disconnected.
pinstringThe pin on the AudioListener that the Wire targets.
wireWireThe Wire between the AudioListener and the other instance.
instanceInstanceThe other instance that is or was connected through the Wire.
FieldValue
securityNone
capabilities["Audio"]