Universal Script πŸ“Œ
3.3k Views
390 Executions

Deep Lau Table Viewer

Universal Script πŸ“Œ
Quren
QurenFirst script
1 year 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
QurenUploader1 year 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
QurenUploader1 year 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
QurenUploader1 year ago(edited)

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

2
Quren's profile picture
QurenUploader1 year ago

@YellowGreg These beefs are gonna drive me crazy soon

1
YellowGreg's profile picture
YellowGreg1 year ago

there's beef in the comments willd

1
rivalsisgood's profile picture
rivalsisgood1 year 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
rivalsisgood1 year ago

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

1

Tags

More universal scripts

See all
Universal Script πŸ“Œ
3.9k
184.5k
Bumped 5 hours ago
Script hub
477
44
6 hours ago
Universal Script πŸ“Œ
28.7k
663.4k
Bumped 8 hours ago
Script hub
13.9k
2.7k
Bumped 10 hours ago
Key System
Paid
Script hub
263.8k
88.2k
Bumped 11 hours ago
Key System
Universal Script πŸ“Œ
3.0k
9.5k
Bumped 11 hours ago
Universal Script πŸ“Œ
736
42
Approved 11 hours ago
Universal Script πŸ“Œ
769
43
Approved 11 hours ago