Cannot Stop sounds created on client with SoundUtils
AverageLuaScripter opened this issue · 1 comments
AverageLuaScripter commented
You cannot stop sounds created on the client with SoundUtils. This is as it uses DataModel:GetService("SoundService"):PlayLocalSound
to play sounds locally. If the end user were to destroy the sound while it was still playing, it'd still play and this is especially annoying for use-cases such as doors or tools.
Another pet-peeve is that task.delay
continues to run even if the sound is destroyed. Check if the sound is destroyed so you're not calling a nil
value!