[SOLVED] Sound playing on server, even though it's played in a localscript?

I have a script here that’s placed in StarterCharacterScripts, and the sound is played only in the LocalScript, yet anyone on the server can hear it. Why is that?

2529315621811acbb3555675c8969792

image

2 Likes

(Syntheix posted the same answer but I’ll leave the link to the wiki.)

By default sounds ignore filtering.

https://developer.roblox.com/en-us/api-reference/class/Sound

I didn’t know this, I thought this was enabled by default. God damnit. Thank you so much. Does this mean, if it’s played on the server it’ll replicate to the client? But not vice-versa?

Any sound played on the server should replicate to any client. To make sure a client sound isn’t heard by other players you must check that ‘RespectFilteringEnables’ property in SoundService.

Amazing, thank you again. The guy I’m deving for must not have it enabled.