Sound

extends Instance

Class fields

FieldXML typeValue
NamestringSound
ExplorerOrderstring1
ExplorerImageIndexstring11

Properties

13
IsPaused
bool
FieldXML typeValue
NamestringIsPaused
IsPlaying
bool
FieldXML typeValue
NamestringIsPlaying
Looped
bool
FieldXML typeValue
NamestringLooped
MaxDistance
float
FieldXML typeValue
NamestringMaxDistance
MinDistance
float
FieldXML typeValue
NamestringMinDistance
Pitch
float
FieldXML typeValue
NamestringPitch
PlayCount
int
FieldXML typeValue
NamestringPlayCount
PlayOnRemove
bool
FieldXML typeValue
NamestringPlayOnRemove
summarystringThe sound will play when it is removed from the Workspace. Looped sounds don't play
SoundId
Content
FieldXML typeValue
NamestringSoundId
TimeLength
double
FieldXML typeValue
NamestringTimeLength
TimePosition
double
FieldXML typeValue
NamestringTimePosition
Volume
float
FieldXML typeValue
NamestringVolume
isPlaying
bool
FieldXML typeValue
NamestringisPlaying

Functions

7
Pause
() → void
FieldXML typeValue
NamestringPause
Play
() → void
FieldXML typeValue
NamestringPlay
Resume
() → void
FieldXML typeValue
NamestringResume
Stop
() → void
FieldXML typeValue
NamestringStop
pause
() → void
FieldXML typeValue
Namestringpause
play
() → void
FieldXML typeValue
Namestringplay
Deprecatedbooltrue
summarystringDeprecated. Use Play() instead
stop
() → void
FieldXML typeValue
Namestringstop

Events

8
DidLoop
(soundId: string, numOfTimesLooped: int) → void
FieldXML typeValue
NamestringDidLoop
Ended
(soundId: string) → void
FieldXML typeValue
NamestringEnded
Paused
(soundId: string) → void
FieldXML typeValue
NamestringPaused
Played
(soundId: string) → void
FieldXML typeValue
NamestringPlayed
SoundResumedFromServer
(currentTimePosition: int) → void
FieldXML typeValue
NamestringSoundResumedFromServer
Stopped
(soundId: string) → void
FieldXML typeValue
NamestringStopped
TimePositionUpdated
(newPositionSeconds: int) → void
FieldXML typeValue
NamestringTimePositionUpdated
TimePositionUpdatedFromScript
(newPositionSeconds: int) → void
FieldXML typeValue
NamestringTimePositionUpdatedFromScript