Cache
Warming a sound builds it once and keeps the ready-made Sound, effects included, in SoundService.WarmedSounds.
While it is warmed, Fetch clones it instead of building it. Chilling it destroys the kept copy. Use this for
sounds that matter during one part of the game, and chill them when that part is over.
Keeping the Sound also makes Roblox start downloading its audio, but warming does not wait for that; to have
audio loaded before it is needed, see Preload. The kept copy is silent: it never plays, and PlayOnRemove is off
on it and restored on the clones Fetch hands out.
Called on the server or before the library has started, every function here warns once and does nothing.
Functions
Warm
Cache.Warm(...: string--
The sound names.
) → ()Warms sounds by name. A name that is already warmed is skipped. A name that is not in the schema prints a warning.
VluxySF.Cache.Warm("BossRoar", "BossStomp")
Chill
Cache.Chill(...: string--
The sound names.
) → ()Chills sounds by name: their kept copies are destroyed. Sounds you already fetched are not affected. A name that is not warmed is ignored.
VluxySF.Cache.Chill("BossRoar", "BossStomp")
IsWarmed
Cache.IsWarmed(name: string--
The sound name.
) → boolean--
Whether the sound is warmed.
print(VluxySF.Cache.IsWarmed("BossRoar"))
GetNames
Cache.GetNames() → {string}--
A new array of every warmed sound name, sorted.
print(VluxySF.Cache.GetNames())