Script logger
Key RequiredUniversal

Script logger

Universal ScriptDanielhightower527Danielhightower527 23 views 35 executesUpdated Aug 25, 2025
Unrated
00
Lua Script•181 lines (7305 chars)
-- Create the main visual container for the tool interface
local ScreenGui = Instance.new("ScreenGui")
local MainFrame = Instance.new("Frame")
local TitleLabel = Instance.new("TextLabel")
local ScriptInput = Instance.new("TextBox")
local ExecuteButton = Instance.new("TextButton")
local StatusLabel = Instance.new("TextLabel")
local UICorner = Instance.new("UICorner")
local UICorner_2 = Instance.new("UICorner")
local UICorner_3 = Instance.new("UICorner")

-- Configure the screen display properties
ScreenGui.Parent = game:GetService("CoreGui")
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
ScreenGui.ResetOnSpawn = false

-- Configure the primary background frame panel
MainFrame.Name = "ExtractorMainFrame"
MainFrame.Parent = ScreenGui
MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 35)
MainFrame.Position = UDim2.new(0.5, -200, 0.5, -150)
MainFrame.Size = UDim2.new(0, 400, 0, 320)
MainFrame.Active = true
MainFrame.Draggable = true

UICorner.CornerRadius = UDim.new(0, 8)
UICorner.Parent = MainFrame

-- Configure the title label text
TitleLabel.Name = "TitleLabel"
TitleLabel.Parent = MainFrame
TitleLabel.BackgroundTransparency = 1
TitleLabel.Size = UDim2.new(1, 0, 0, 40)
TitleLabel.Font = Enum.Font.SourceSansBold
TitleLabel.Text = "LAG-FREE SCRIPT & OBJECT INTERCEPTOR"
TitleLabel.TextColor3 = Color3.fromRGB(240, 240, 240)
TitleLabel.TextSize = 15

-- Configure the input textbox area for custom loaders
ScriptInput.Name = "ScriptInput"
ScriptInput.Parent = MainFrame
ScriptInput.BackgroundColor3 = Color3.fromRGB(20, 20, 22)
ScriptInput.Position = UDim2.new(0, 15, 0, 45)
ScriptInput.Size = UDim2.new(1, -30, 0, 160)
ScriptInput.ClearTextOnFocus = false
ScriptInput.Font = Enum.Font.Code
ScriptInput.MultiLine = true
ScriptInput.Text = "-- Paste your full loader script here..."
ScriptInput.TextColor3 = Color3.fromRGB(180, 255, 180)
ScriptInput.TextSize = 12
ScriptInput.TextXAlignment = Enum.TextXAlignment.Left
ScriptInput.TextYAlignment = Enum.TextYAlignment.Top

UICorner_2.CornerRadius = UDim.new(0, 6)
UICorner_2.Parent = ScriptInput

-- Configure the processing activation button
ExecuteButton.Name = "ExecuteButton"
ExecuteButton.Parent = MainFrame
ExecuteButton.BackgroundColor3 = Color3.fromRGB(0, 120, 215)
ExecuteButton.Position = UDim2.new(0, 15, 0, 215)
ExecuteButton.Size = UDim2.new(1, -30, 0, 40)
ExecuteButton.Font = Enum.Font.SourceSansBold
ExecuteButton.Text = "RUN INTERCEPTOR & LOG ALL"
ExecuteButton.TextColor3 = Color3.fromRGB(255, 255, 255)
ExecuteButton.TextSize = 16

UICorner_3.CornerRadius = UDim.new(0, 6)
UICorner_3.Parent = ExecuteButton

-- Configure the dynamic operational feedback status text
StatusLabel.Name = "StatusLabel"
StatusLabel.Parent = MainFrame
StatusLabel.BackgroundTransparency = 1
StatusLabel.Position = UDim2.new(0, 15, 0, 265)
StatusLabel.Size = UDim2.new(1, -30, 0, 45)
StatusLabel.Font = Enum.Font.SourceSansItalic
StatusLabel.Text = "Status: Idle.\nPerformance Mode: Enabled."
StatusLabel.TextColor3 = Color3.fromRGB(150, 150, 150)
StatusLabel.TextSize = 13
StatusLabel.TextXAlignment = Enum.TextXAlignment.Left
StatusLabel.TextYAlignment = Enum.TextYAlignment.Top

-- Initialize the local directory tracking
pcall(function()
    makefolder("debug")
end)

-- Session Tracking Metrics
local extractionCounter = 0
local createdObjectsLog = {}
local isLoggingActive = false

-- -------------------------------------------------------------
-- PERFORMANCE OPTIMIZED MONITORING SYSTEM
-- -------------------------------------------------------------
local function beginTrackingContainer(container, labelName)
    container.DescendantAdded:Connect(function(descendant)
        -- Strictly ignore logging unless an input script is actively processing
        if not isLoggingActive then return end
        
        -- High-efficiency string construction (prevents memory allocation thrashing)
        local objectDataStr = "[" .. labelName .. " Item] Name: " .. tostring(descendant.Name) .. " | Class: " .. tostring(descendant.ClassName)
        table.insert(createdObjectsLog, objectDataStr)
    end)
end

-- Hook primary runtime storage regions
beginTrackingContainer(game:GetService("Workspace"), "Workspace")
beginTrackingContainer(game:GetService("ReplicatedStorage"), "ReplicatedStorage")
beginTrackingContainer(game:GetService("Players"), "Players")
beginTrackingContainer(game:GetService("CoreGui"), "CoreGui")

-- -------------------------------------------------------------
-- EXECUTION INTERFACE ROUTINES
-- -------------------------------------------------------------
ExecuteButton.MouseButton1Click:Connect(function()
    local inputText = ScriptInput.Text
    if inputText == "" or inputText == "-- Paste your full loader script here..." then
        StatusLabel.Text = "Status: Error - Input text box cannot be empty!"
        StatusLabel.TextColor3 = Color3.fromRGB(255, 100, 100)
        return
    end

    StatusLabel.Text = "Status: Intercepting data streams safely..."
    StatusLabel.TextColor3 = Color3.fromRGB(255, 200, 50)

    -- Reset state buffers cleanly
    local baseLoadstring = loadstring
    table.clear(createdObjectsLog)
    isLoggingActive = true

    -- Override compilation hook
    getgenv().loadstring = function(sourceString, chunkMetadata)
        if isLoggingActive and type(sourceString) == "string" and #sourceString > 0 then
            extractionCounter = extractionCounter + 1
            
            local currentRun = extractionCounter
            local outScriptPath = "debug/extracted_payload_" .. tostring(currentRun) .. ".lua"
            local outObjectLogPath = "debug/object_creation_log_" .. tostring(currentRun) .. ".txt"
            
            -- Thread Offloading: Defer heavy disk-write tasks to the next frame to prevent stuttering
            task.spawn(function()
                pcall(writefile, outScriptPath, sourceString)
                
                if #createdObjectsLog > 0 then
                    local trackingHeader = "-- ASSET DUMP FOR RUN #" .. tostring(currentRun) .. "\n\n"
                    pcall(writefile, outObjectLogPath, trackingHeader .. table.concat(createdObjectsLog, "\n"))
                end
            end)

            StatusLabel.Text = "Status: Captured run #" .. tostring(currentRun) .. "!\nSaved in background."
            StatusLabel.TextColor3 = Color3.fromRGB(100, 255, 100)
        end
        
        return baseLoadstring(sourceString, chunkMetadata)
    end

    -- Run the custom code chunk inside an isolated protected frame
    task.spawn(function()
        local completedOk, structuralErr = pcall(function()
            local verifiedExpression = baseLoadstring(inputText)
            if verifiedExpression then
                verifiedExpression()
            else
                error("Target failed syntax verification.")
            end
        end)

        -- Clean up tracking variables after execution completes
        task.wait(0.2) 
        isLoggingActive = false
        getgenv().loadstring = baseLoadstring

        if not completedOk then
            StatusLabel.Text = "Status: Script error encountered.\nCheck console (F9)."
            StatusLabel.TextColor3 = Color3.fromRGB(255, 100, 100)
            warn("[EXTRACTOR FAULT] " .. tostring(structuralErr))
        end
    end)
end)

Features & Information

It allows you to run scripts and understand them YOU WILL BE BANNED BY THE SCRIPTER OF SOME SCRIPTS Further decoding required.

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts