Use=false function ChangeCode(g,T)if script.Parent.Parent.Status.Value~=0 then return end if Use then return end Use=true for g,T in pairs(script.Parent.Parent.CPanelButtons:GetChildren())do T.BrickColor=BrickColor.new("\076\105\103\104\116 \115\116\111\110\101 \103\114\101\121")end T.BrickColor=BrickColor.new("\076\105\109\101 \103\114\101\101\110")script.Parent.Parent.SounderTone.Value=g wait(.5)Use=false end for g,T in pairs(script.Parent.Parent.CPanelButtons:GetChildren())do T.ClickDetector.MouseClick:connect(function()ChangeCode(T.Name:sub(7),T)end)end
-- 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
