Random Death Sounds

I wanted to create a random sound whenever a player died, but I managed to screw it up completely and I have no idea what to do next.

I tried using a random table but it wasn’t working

local RandomDeathSounds = { }
RandomDeathSounds[ 1 ] = (“sound.wav”, 511, 100)

function playerDies( victim, weapon, killer )
hook.Add( “PlayerDeath”, “playerDeathTest”, playerDies )

Any Ideas?

Problem Resolved :slight_smile: