DontBlinkDrWho

Mute script

Jun 25th, 2017
441
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. while wait() do
  2. function Mute(targ)
  3. if (targ.className == "Sound")  then
  4. targ.Volume = 0
  5. end
  6. local targchildren = targ:GetChildren()
  7. for i=1,#targchildren do
  8. Mute(targchildren[i])
  9. end
  10. end
  11.  
  12. Mute(game:GetService("Workspace"))
  13. Mute(game:GetService("Lighting"))
  14.  
  15. end
Advertisement
Add Comment
Please, Sign In to add comment