workspace.CodeRedButton.ClickDetector.MouseClick:Connect(function()
script.Parent.ClickDetector:Destroy()
script.Parent.SurfaceGui.TextLabel.Text = "Please Wait"
wait(5)
Instance.new("ClickDetector", script.Parent)
script.Parent.SurfaceGui.TextLabel.Text = "Disable Code Red"
end)
script.Parent.ClickDetector.MouseClick:Connect(function()
for i,v in pairs(workspace.Lights.Lights:GetChildren()) do
if v:IsA("Part") then
v.BrickColor = BrickColor.new("White")
end
end
workspace.Breach:Stop()
wait(3)
end)
2nd function doesn't work. No error codes.

6 comments
What's not working correctly? Are you trying to find and stop playing all the sounds inside the part?
Is this in a local script?
Have you tried replacing .Sound3 with ["Sound3"] or :FindFirstChild("Sound3")?
This is a server script.
I made edits to the script.
Don't use :Stop()