Somebody was trying to help me randomize custom death sounds and gave me this script.
IDs = {130965811, 131045862, 131045876}
game.Players.PlayerAdded:connect(function(player)
repeat wait() until player.Character
player.CharacterAdded:connect(function(character)
character:WaitForChild("Humanoid").Died:connect(function(human)
sound = "http://www.roblox.com/asset/?id="..tostring(IDs[math.random(#IDs)])
sound:Play()
end)
end)
end)
However, it doesn't work. Is there a way to salvage this?

2 comments
I tried it. No luck, if I reset or have an AI kill me, I just hear the same generic death sound.
I just looked on the wiki. It looks like you have to create a sound as an actual instance. You could also try making the volume louder.