PlayLocalSound() not allowing me to reduce sound's volume or stop the sound from playing

I am trying to play a local sound for when a player dies, here is my script:

local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://1841249836"
ss:PlayLocalSound(sound)
for i = 1, 0, -.01 do
	sound.Volume = i
	wait(.01)
end	
sound:Destroy()

Currently this does not work. It continues the script after the for loop, but the for loop and the Destroy() have no affect on the sound

1 Like

Yeah, this behavior is really annoying and there’s no fix.

Instead of using PlayLocalSound, just play the sound normally (:Play()). It won’t replicate for other clients.

2 Likes

Thanks! This only seems to work when I parent it to the workspace, which is why I originally tried the other method, but it’s a shame it doesn’t function this way

2 Likes