Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. local ply = LocalPlayer()
  2.  
  3. sound.Add( {
  4.     name = "flashsound2",
  5.     channel = CHAN_STATIC,
  6.     volume = 1,
  7.     sound = "flashsound3.wav"
  8. } )
  9. local FlashSound = Sound("flashsound2")
  10.  
  11.  
  12. function PlaySound()
  13.     if ply:getDarkRPVar("job") == sfsjobname and ply:GetVelocity():Length() > 50 then
  14.  
  15.     local mysound = CreateSound(ply, FlashSound )
  16.     mysound:Play() -- starts the sound
  17. else
  18.     end
  19. end
  20. hook.Add("Think", "SecondPrint", PlaySound)
  21.  
  22. function PrintBones( ply )
  23.     for i=0, ply:GetBoneCount()-1 do
  24.         print( i, ply:GetBoneName( i ) )
  25.     end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement