- Documentation
- Client functions
- setSoundLooped
Function
setSoundLooped
Sets whether a sound loops. The simplest way is to set it on creation: playSound(file, true).
Syntax
bool setSoundLooped(sound theSound, bool looped)Arguments
theSoundsound- The sound.
loopedbooltrueloops.
Returns
true on success.
Example
local music = playSound("audio/menu.mp3", true)