Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago

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

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

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.

Ad

Answer this question