-- TOOLAME CONFIDENTIAL --

Use = false
function ChangeCode(Code,l)
if script.Parent.Parent.Status.Value ~= 0 then return end
if Use then return end
Use = true
for i,l in pairs(script.Parent.Parent.CPanelButtons:GetChildren()) do l.BrickColor = BrickColor.new("Light stone grey") end


l.BrickColor =  BrickColor.new("Lime green")
script.Parent.Parent.SounderTone.Value = Code
wait(0.5)
Use = false
end


for i,l in pairs(script.Parent.Parent.CPanelButtons:GetChildren()) do
	
	l.ClickDetector.MouseClick:connect(function() ChangeCode(l.Name:sub(7),l) end)
end
