local M=game:GetService("\083\116\097\114\116\101\114\071\117\105")local D=require(script.Parent:WaitForChild("\085\116\105\108"))function ProcessMessage(D,K,W)if(string.sub(D,1,8)):lower()=="\047\099\111\110\115\111\108\101"or(string.sub(D,1,11)):lower()=="\047\110\101\119\099\111\110\115\111\108\101"then local D,K=pcall(function()return M:GetCore("\068\101\118\067\111\110\115\111\108\101\086\105\115\105\098\108\101")end)if D then local D,W=pcall(function()M:SetCore("\068\101\118\067\111\110\115\111\108\101\086\105\115\105\098\108\101",not K)end)if not D and W then print("\069\114\114\111\114 \109\097\107\105\110\103 \100\101\118\101\108\111\112\101\114 \099\111\110\115\111\108\101 \118\105\115\105\098\108\101\058 "..W)end end return true end return false end return{[D.KEY_COMMAND_PROCESSOR_TYPE]=D.COMPLETED_MESSAGE_PROCESSOR;[D.KEY_PROCESSOR_FUNCTION]=ProcessMessage}
--!nonstrict
--	// FileName: DeveloperConsole.lua
--	// Written by: TheGamer101
--	// Description: Command to open or close the developer console.

local StarterGui = game:GetService("StarterGui")
local util = require(script.Parent:WaitForChild("Util"))

function ProcessMessage(message, ChatWindow, ChatSettings)
	if string.sub(message, 1, 8):lower() == "/console" or string.sub(message, 1, 11):lower() == "/newconsole" then
		local success, developerConsoleVisible = pcall(function() return StarterGui:GetCore("DevConsoleVisible") end)
		if success then
			local success, err = pcall(function() StarterGui:SetCore("DevConsoleVisible", not developerConsoleVisible) end)
			if not success and err then
				print("Error making developer console visible: " ..err)
			end
		end
		return true
	end
	return false
end

return {
	[util.KEY_COMMAND_PROCESSOR_TYPE] = util.COMPLETED_MESSAGE_PROCESSOR,
	[util.KEY_PROCESSOR_FUNCTION] = ProcessMessage
}

