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.
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.