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