
5.0k Views
236 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Scan Dex then export file txt named timestamp.
-- Script Scan Dex Explorer-like Structure - Save to Krnl Workspace TXT
local function dumpInstance(instance, indent)
local indentStr = string.rep(" ", indent)
local line = indentStr .. instance.Name .. " (" .. instance.ClassName .. ")\n"
local content = line
-- Sort children untuk urutan rapi
local children = instance:GetChildren()
table.sort(children, function(a, b) return a.Name < b.Name end)
for _, child in ipairs(children) do
content = content .. dumpInstance(child, indent + 1)
end
return content
end
-- Timestamp untuk nama file
local timestamp = os.date("%Y%m%d_%H%M%S")
local filename = "dex_scan_" .. timestamp .. ".txt"
-- Dump hierarchy ke string
local fullContent = "-- Dex Explorer Scan - " .. os.date("%Y-%m-%d %H:%M:%S") .. "\n\n"
fullContent = fullContent .. dumpInstance(game, 0)
-- Simpan ke workspace Krnl (writefile)
writefile(filename, fullContent)
print("Scan selesai! File TXT disimpan di folder workspace Krnl: " .. filename)
print("Buka via ZArchiver atau file manager lain untuk liat full hierarchy.")
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!






