I am making a function which creates a bullet hole when you shoot a gun. It fires a remote with all the data to create the bullet hole part such as the position and material. The server then fires all clients besides the player who shot the gun, which triggers a function to create the part.
A sound is put into the part with the MaxDistance set to 25 and EmitterSize to 10. However, the sound can be slightly heard by everyone in the game.
I have also had this issue with my custom footstep noises script which clones a sound from ReplicatedStorage that already has the MaxDistance set as 25.
I have not found any solutions anywhere nor people with the same problem.
Do you have SoundService.RespectFilteringEnabled as true? With this property set to true, sound playback will not replicate. Without it, sound playback will replicate from client scripts.
There’s only two things I can think of: an oversight or a bug. If it’s an oversight, I haven’t the slightest clue as to what’s going on.
On an off-topic note, I just want to note something about your code and how you’re setting your properties after Parent. Typically when creating a new Instance, you should set its properties first before its Parent. Something to do with performance. A PSA was released regarding this practice in 2016: