I have this but i get this error.
Hook ‘playerDeathTest’ Failed: Hunt/gamemode/init.lua:107: attempt to index global ‘surface’ (a nil value)
[lua]/---------------------------
Disable Death Sound
---------------------------/
function OverrideDeathSound()
return true
end
hook.Add( “PlayerDeath”, “playerDeathTest”, playerDies )
/---------------------------
Custom Death Sound
---------------------------/
function playerDies( victim, weapon, killer )
surface.PlaySound( "NESKill.wav" )
end
hook.Add( “PlayerDeath”, playerDies )[/lua]