Universal Script 📌
3.4k Views
520 Executions

Deep Lau Table Viewer

Universal Script 📌
Quren
QurenFirst script
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Created By Quren (Discord: fuckyougitler) - Allows saving results to a text file for large tables - Recursively prints table contents to the console - Sorts keys: numeric in ascending order, then non-numeric alphabetically, tables last - Formats output as a tree with prefixes (┃, └──, ╲) - Displays key, value, and data type for non-table values - Supports nested tables with indentation for clarity

View Raw

--[[
	Created By Quren (Discord: fuckyougitler)
]]

function readTable(tbl, saveToFile, forcedPrint, tblName)
    maxLines = 500 -- Maximum output (without saving the file) is <<500>> lines with all existing lines stay in console.
    tblName = tblName or "UnNamed"
    local buffer = {}

    local function generateOutput(tbl, prefix)
        if type(tbl) ~= "table" then
            table.insert(buffer, {type = 'print', text = "Value: " .. tostring(tbl)})
            return
        end
        
        prefix = prefix or ""
        local numValueKeys, otherValueKeys, tableKeys = {}, {}, {}
        
        for k, v in pairs(tbl) do
            if type(v) == "table" then
                table.insert(tableKeys, k)
            elseif type(k) == "number" then
                table.insert(numValueKeys, k)
            else
                table.insert(otherValueKeys, k)
            end
        end
        
        table.sort(numValueKeys)  -- numbers sort
        table.sort(otherValueKeys)  -- letters sort
        table.sort(tableKeys, function(a, b) return tostring(a) < tostring(b) end)  -- tables sort
        
        local sortedKeys = {}
        for _, k in ipairs(numValueKeys) do table.insert(sortedKeys, k) end
        for _, k in ipairs(otherValueKeys) do table.insert(sortedKeys, k) end
        for _, k in ipairs(tableKeys) do table.insert(sortedKeys, k) end
        
        for i, key in ipairs(sortedKeys) do
            local value = tbl[key]


Comments

26
Log in to join the conversation. Login
Quren's profile picture
QurenUploader2 years ago

@wjGQiwhUsbUsi9 By that logic, every FPS unlocker, auto-clicker, or even Discord overlay should get people banned. Roblox doesn’t care about harmless tools, and neither should you. Go find a real problem.

2
Quren's profile picture
QurenUploader2 years ago

@wjGQiwhUsbUsi9 You are currently sitting on the Roblox scripting platform and I see one script in your profile, it's not for you to talk about Roblox TOS.

2
Quren's profile picture
QurenUploader2 years ago(edited)

@wjGQiwhUsbUsi9 Okay, so what? Is there any law prohibiting me from making and uploading this script?

2
Quren's profile picture
QurenUploader2 years ago

@YellowGreg These beefs are gonna drive me crazy soon

1
YellowGreg's profile picture
YellowGreg2 years ago

there's beef in the comments willd

1
rivalsisgood's profile picture
rivalsisgood2 years ago

how does notes make the code more readable dumbas ur just making the code more messier and not organizing your overfilling notes and it's a * dump stop getting so triggered over something

1
rivalsisgood's profile picture
rivalsisgood2 years ago

No? Because idk why your complaining over a scirpt that doesn't even matgee

1

Tags

More universal scripts

See all