Advertisement
tyridge77

Untitled

Jul 6th, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. snds = {};
  2. game.DescendantAdded:connect(function(o)
  3. if o:isA("Sound") then
  4. snds[#snds+1]=o;
  5. end
  6. end)
  7. function scan(p)
  8. for _,v in pairs(p:GetChildren()) do
  9. if v:isA("Sound") then
  10. snds[#snds+1]=v;
  11. else scan(v)
  12. end
  13. end
  14. end
  15. scan(Workspace);
  16.  
  17. while wait() do
  18. for _,v in pairs(snds) do
  19. v.Volume = 0;
  20. end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement