[SIMPLE INQUIRY] Cannot manipulate Sounds stored under SoundService

Ok so basically, I have a simple LocalScript right here

local SoundService = game.SoundService
local sound = SoundService.Sound
SoundService:PlayLocalSound(sound)
task.wait(3)
sound:Stop()

The problem is that the Sound doesn’t stop. Why?

By playing a sound using PlayLocalSound, you aren’t actually modifying the sound object and hence it never enters a state of playing. This means you can’t just call :Stop on it.

The only way that a sound played using PlayLocalSound is stopped is when the audio finishes playing. You should instead use a different method of playing the audio if you wish to be able to call :Stop on it.

2 Likes

Thanks for the information!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.