-- ConsoleChat by joyful_pizzapartyl(changed name) local Players = game:GetService("Players") local player = Players.LocalPlayer -- valid commands (lowercase) local commands = { ["/e consolectrl"] = true, ["/e consctrl"] = true, ["/e cc"] = true, } player.Chatted:Connect(function(msg) local lower = string.lower(msg) for cmd in pairs(commands) do if lower:sub(1, #cmd) == cmd then local content = msg:sub(#cmd + 2) -- text after command + space if content ~= "" then print("> CC by " .. player.Name .. ": " .. content) else print("> CC by " .. player.Name .. ": (empty message)") end break end end end)