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

Problems with PlayLocalSound in soundservice?

Asked by
sigve10 94
6 years ago

By now, most developers should know what the function PlayLocalSound() by now, but for those of you who do not know: Running the function PlayLocalSound() from soundService will cause a sound to play locally.

Now, there is a certain problem which I am having: I am trying to make an audio player in studio, and so far, everything from the interface to functionality works well. The only problem I had was to get it to play as a plugin, which I easily fixed with PlayLocalSound(). However, I instantly faced a new issue: PlayLocalSound() only plays the sound, and anything done to the sound afterwards will not be in effect, including trying to stop the sound, pause the sound, or even enabling looping. My question is: Is there any way to actually manipulate a sound once it's been played with PlayLocalSound?

If you desire any further information or assistance, I'd be glad to help.

0
DId you ever figure this out? I have this problem as well. GottaHaveAFunTime 218 — 6y

1 answer

Log in to vote
0
Answered by
cabbler 1942 Moderation Voter
6 years ago

A different approach, if you have Filtering enabled and SoundService.
RespectFilteringEnabled, is to not bother with this and play sounds normally. Only the client will hear.

0
This does not help my problem. Please remember that I am requesting an answer for playing sounds in studio, and thus will not have access to change "RespectFilteringEnabled" due to its nonAccessibleSecurity. Even if I made the user do so manually, it does not help with the case of playing sounds. sigve10 94 — 6y
0
I think you're confused.. NotAccessibleSecurity means you CAN change it from studio. Just check the box lol. And yes it does help with playing sounds bc you can play sounds normally. cabbler 1942 — 6y
Ad

Answer this question