Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function recurse(parent)
- for _, child in pairs(parent:GetChildren()) do
- if child:IsA"Sound" then
- child:Stop()
- child.Volume=0
- child:Destroy()
- end
- recurse(child)
- end
- end
- recurse(workspace)
- if game:GetService"Players".LocalPlayer then
- game:GetService"Players".LocalPlayer:GetMouse().KeyDown:connect(function(k)if k=='m' then recurse(workspace) elseif key=='c' then recurse(workspace); game:GetService"Lighting":ClearAllChildren(); end end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement