Inherits: Instance
Description
A sandboxed version of Sound.
Properties
Type | Key | Default Value |
---|---|---|
string | ClassName | Sound |
string | Name | Sound |
number | PlaybackSpeed | 1 |
string | SoundId | nil |
number | Volume | 0.5 |
Methods
Property Descriptions
number
PlaybackSpeed = 1
PlaybackSpeed
defaults to 1 for new instances but if you use Audio:Play, the default value may vary.
string
SoundId = “”
- Changing SoundId will stop the sound.
Example:
local sound = Audio:Play("Boombox:Stepping Up");
task.wait(3);
sound.SoundId = "rbxassetid://1836846557"; -- "Boombox:Get Up On Your Feet"
sound:Play();
Changes the playing sound to “Boombox:Get Up On Your Feet” after 3 seconds.
number
Volume = 0.5
Volume
defaults to 0.5 for new instances but if you useAudio:Play()
, the default value may vary.
Method Descriptions
- Plays the sound
- Stops the sound
- Destroy the instance.