I apologize if this is in the wrong category.
Lately, I’ve been trying to make sounds play for the client only, and not for the server, but I cannot seem to do it.
What do you want to achieve? I want sounds to play only for the client, and not the server.
What is the issue? Whatever I do, it doesn’t work as intended.
What solutions have you tried so far? I searched for similar posts, and looked at the Developer Hub, but I didn’t see my answer.
I also have tried setting SoundService.RespectFilteringEnabled to true, but everytime, the result was either it was playing for the entire server, or no sound played at all. Any help is appreciated.
Edit: The sound is supposed to play when a part is touched.
Double Edit: Here is the script that plays the sound.
local debounce = false game.Workspace.BadRamp4.Touched:Connect(function(hit) --Change bad part name if not debounce then debounce = true print("Oof!") game.Workspace.BadRamp4.Material = Enum.Material.Neon --Change bad part name game.Workspace.Whoops:Play() wait(1) game.Workspace.BadRamp4.Material = Enum.Material.SmoothPlastic --Change bad part name debounce = false end end)