Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- snds = {};
- game.DescendantAdded:connect(function(o)
- if o:isA("Sound") then
- snds[#snds+1]=o;
- end
- end)
- function scan(p)
- for _,v in pairs(p:GetChildren()) do
- if v:isA("Sound") then
- snds[#snds+1]=v;
- else scan(v)
- end
- end
- end
- scan(Workspace);
- while wait() do
- for _,v in pairs(snds) do
- v.Volume = 0;
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement