Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can you modify a sound after youve requested it to PlayLocalSound()?

Ive found that after you request a sound using SoundService you say PlayLocalSound.

The problem with this is that you cant modify the sound after this. I have found that none of my modifications take effect. This involves looping, playback speed, volume, etc.

Does anyone know how to modify a sound that is played using SoundService:PlayerLocalSound?

Thank you for your time :)

1 answer

I think :PlayLocalSound() plays the sound but completely ignores the sound object itself. That’s what I think at least.

Since you’re using :PlayLocalSound() though, I assume you only want certain players to hear it, so I have another way to do that.

Instead of using :PlayLocalSound() in SoundService, you can put the sound in StarterGui or the player’s PlayerGui, and make a local script that plays it. Use :Play() in the script too, not :PlayLocalSound(). You should be able to change the sound properties while it’s playing.

This discussion is preserved as it was. New answers, comments, and votes are closed.