Advertisement
szymski

Untitled

Nov 21st, 2015
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. hook.Add("PlayerDeath", "NewSound", function(vic,unused1,unused2)
  2.  
  3. local noise = nil
  4.  
  5. local num = math.random(0,2)
  6. if num == 0 then
  7. noise = Sound("sadviolin.wav")
  8. else
  9. noise = Sound("rock.wav")
  10. end
  11.  
  12. vic:EmitSound(noise)
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement