local ScriptContext = game:GetService("ScriptContext") local LogService = game:GetService("LogService") local TableMessages = {} local function InsertTableMessage(msg: string) table.insert(TableMessages, msg) end local function DisableSignalConnections(signal: RBXScriptSignal, label: string) if typeof(getconnections) ~= "function" then InsertTableMessage("getconnections is not available while disabling " .. tostring(label)) return end if typeof(signal) ~= "RBXScriptSignal" then InsertTableMessage("signal arg passed to DisableSignalConnections wasn't an RBXScriptSignal") return end local ok, err = pcall(function() for _, conn in ipairs(getconnections(signal)) do conn:Disable() InsertTableMessage("disabling conn") end end) if not ok then InsertTableMessage("Disabling " .. tostring(label) .. " connections had a problem: " .. tostring(err)) end end DisableSignalConnections(ScriptContext.Error, "ScriptContext") DisableSignalConnections(LogService.MessageOut, "LogService") task.spawn(function() task.wait(1) LogService:ClearOutput() -- so they cant use GetLogHistory end) getgenv().DisableLogDetectionLogs = TableMessages --[[ local tbl = getgenv().DisableLogDetectionLogs if type(tbl) == "table" then for _, msg in ipairs(tbl) do print(msg) -- can also make it setclipboard all your messages into your clipboard (with newlines) end end --]]