Missing API Documentation
This API Class does not have any or complete API documentation. Please add API documentation if possible.
The Sound class inherits from Instance. Sounds are linked to an audio file or asset through the SoundId property. Sounds are controlled by SoundService. Sounds work if parented to BaseParts, the Workspace, or a Player's PlayerGui. Sounds are additionally processed by parenting an instance that is a subclass of SoundEffect to a sound, such as ReverbSoundEffect. Sounds can additionally be parented to SoundGroups, which applies SoundEffects in the group to all sounds in it.
Roblox uses FMOD for playing sounds.
Properties
ChannelCount: int
- Category: Asset.
- Read security: RobloxScriptSecurity.
- Write security: RobloxScriptSecurity.
- Serialization: cannot load or save.
- Thread safety: read safe
IsSpatial: bool
- Category: Behavior.
- Read security: RobloxScriptSecurity.
- Write security: RobloxScriptSecurity.
- Serialization: cannot load or save.
- Thread safety: read safe
LoopRegion: NumberRange
- Category: Regions.
- Serialization: can save and load.
- Thread safety: read safe
Looped: bool
- Category: Playback.
- Serialization: can save and load.
- Thread safety: read safe
PlayOnRemove: bool
- Category: Behavior.
- Serialization: can save and load.
- Thread safety: read safe
PlaybackLoudness: double
- Category: Playback.
- Serialization: cannot load or save.
- Thread safety: read safe
PlaybackRegion: NumberRange
- Category: Regions.
- Serialization: can save and load.
- Thread safety: read safe
PlaybackRegionsEnabled: bool
- Category: Playback.
- Serialization: can save and load.
- Thread safety: read safe
RollOffGain: float
- Category: Playback.
- Read security: RobloxScriptSecurity.
- Write security: RobloxScriptSecurity.
- Serialization: cannot load or save.
- Thread safety: read safe
RollOffMaxDistance: float
- Category: Emitter.
- Serialization: can save and load.
- Thread safety: read safe
RollOffMinDistance: float
- Category: Emitter.
- Serialization: can save and load.
- Thread safety: read safe
RollOffMode: RollOffMode
- Category: Emitter.
- Serialization: can save and load.
- Thread safety: read safe
SoundGroup: SoundGroup
- Category: Routing.
- Serialization: can save and load.
- Thread safety: read safe
UsageContextPermission: UsageContext
- Category: Behavior.
- Read security: RobloxScriptSecurity.
- Write security: RobloxScriptSecurity.
- Serialization: cannot load or save.
- Thread safety: read safe
Volume: float
- Category: Playback.
- Serialization: can save and load.
- Thread safety: read safe
isPlaying: bool
Use IsPlaying instead.
- Category: Data.
- Serialization: cannot load or save.
- Thread safety: read safe
Methods
Pause(): null
- Thread safety: unsafe
Play(): null
- Thread safety: unsafe
Resume(): null
- Thread safety: unsafe
Stop(): null
- Thread safety: unsafe
Events
DidLoop(soundId: string, numOfTimesLooped: int)
Name | Type |
---|---|
soundId | string |
numOfTimesLooped | int |
- Thread safety: unsafe
External links[]
- Sound in the Roblox Creator Documentation
- Sound in the Roblox API Reference