Run it
Copy the script and paste it into your executor.
VERSION =
CONFIG = {
fileSuffix = ,
fullSuffix = ,
fallbackName = ,
writeScriptFolder = ,
alsoWriteFullTxt = ,
scriptsSubfolder = ,
asciiFileName = ,
stripBracketTags = ,
frameBudget = ,
dumpScripts = ,
maxDecompiles = ,
maxTotalScriptBytes = * * ,
decompileTimeout = ,
skipStockScripts = ,
dedupeByHash = ,
scanRunning = ,
scanGC = ,
scanGCLimit = ,
scanNil = ,
dumpModuleReturns = ,
maxModuleReturns = ,
moduleRequireTimeout = ,
moduleDumpDepth = ,
moduleDumpMaxNodes = ,
buildRemoteXref = ,
xrefMaxScriptsPerRemote = ,
xrefMaxCallLines = ,
fetchGameMeta = ,
includeAttributes = ,
includeTags = ,
includeCoordinates = ,
collectFolders = ,
collectSounds = ,
collectAnimations = ,
maxWorldTargets = ,
chunkSize = ,
}
okEnv, env = (() () )
okEnv (env) == (env.ArkxiDumperConfig) ==
k, v (env.ArkxiDumperConfig)
CONFIG[k] ~= (CONFIG[k]) == (v) CONFIG[k] = v
SKIP_CLASSES = {
ScreenGui = , BillboardGui = , SurfaceGui = ,
Frame = , ScrollingFrame = , CanvasGroup = ,
TextLabel = , TextButton = , TextBox = ,
ImageLabel = , ImageButton = , ViewportFrame = , VideoFrame = ,
UIListLayout = , UIGridLayout = , UITableLayout = , UIPageLayout = ,
UIPadding = , UICorner = , UIStroke = , UIScale = ,
UIAspectRatioConstraint = , UISizeConstraint = ,
UITextSizeConstraint = , UIFlexItem = , UIGradient = ,
BloomEffect = , BlurEffect = , ColorCorrectionEffect = ,
DepthOfFieldEffect = , SunRaysEffect = , Atmosphere = , Sky = ,
Clouds = , ParticleEmitter = , Trail = , Beam = ,
Fire = , Smoke = , Sparkles = , Highlight = ,
PointLight = , SpotLight = , SurfaceLight = ,
Decal = , Texture = , SpecialMesh = , BlockMesh = ,
CylinderMesh = , FileMesh = , Weld = , WeldConstraint = ,
Motor6D = , Attachment = , Bone = ,
}
WANTED = {
RemoteEvent = , RemoteFunction = ,
BindableEvent = , BindableFunction = ,
LocalScript = , ModuleScript = , Script = ,
ProximityPrompt = , ClickDetector = ,
Tool = , HopperBin = , Seat = , VehicleSeat = ,
SpawnLocation = , Animation = , Sound = ,
StringValue = , IntValue = , NumberValue = ,
BoolValue = , ObjectValue = , CFrameValue = , Vector3Value = ,
Configuration = , Folder = ,
StarterCharacterScripts = , StarterPlayerScripts = ,
}
CONFIG.collectFolders WANTED.Folder =
CONFIG.collectSounds WANTED.Sound =
CONFIG.collectAnimations WANTED.Animation =
VALUE_CLASSES = {
StringValue = , IntValue = , NumberValue = ,
BoolValue = , ObjectValue = , CFrameValue = , Vector3Value = ,
}
SCRIPT_CLASSES = { LocalScript = , ModuleScript = , Script = }
REMOTE_CLASSES = {
RemoteEvent = , RemoteFunction = ,
BindableEvent = , BindableFunction = ,
}
DIRECT_WORLD = {
ProximityPrompt = , ClickDetector = , Seat = ,
VehicleSeat = , SpawnLocation = , Tool = ,
}
POS_FROM_PARENT = { ProximityPrompt = , ClickDetector = , Sound = }
STOCK_NAMES = {
PlayerModule = , RbxCharacterSounds = , ChatScript = ,
BubbleChat = , PlayerScriptsLoader = , ControlScript = ,
CameraScript = ,
}
INTEREST_KEYWORDS = {
, , , , , , , ,
, , , , , , , ,
, , , , , , , ,
, , , , , , , , ,
, , , , , , , , , ,
, , , , , , , , ,
, , , , , , , , ,
, , , , , , ,
, , , , , ,
}
KEYWORD_SET = {}
_, kw (INTEREST_KEYWORDS) KEYWORD_SET[kw] =
SERVICES = {
, , ,
, , , , ,
, , ,
}
LUA_KEYWORDS = {
[] = , [] = , [] = , [] = , [] = ,
[] = , [] = , [] = , [] = , [] = ,
[] = , [] = , [] = , [] = , [] = ,
[] = , [] = , [] = , [] = ,
[] = , [] = ,
}
yieldFn = (() == (.wait) == )
.wait
lastYield = .()
tickCount =
()
(yieldFn)
lastYield = .()
()
tickCount = tickCount +
tickCount % ~=
.() - lastYield >= CONFIG.frameBudget
()
(timeout, fn, ...)
() ~= (.spawn) ~=
(fn, ...)
args = .(...)
done, ok, res = , ,
th = .(()
ok, res = (fn, .(args, , args.n))
done =
)
t0 = .()
done .() - t0 < timeout
(yieldFn, )
done
(.cancel) == (.cancel, th)
, .. (timeout) ..
ok, res
entries = {}
remotes = {}
worldTargets = {}
extras = {}
seenInst = {}
scriptItems = {}
scriptByInst = {}
decompiledList = {}
moduleReturns = {}
xref = {}
classCounts = {}
phaseErrors = {}
outputInfo = { folder = , full = , scriptFiles = , scriptFileFails = }
totalScriptBytes =
gameMeta = { name = , source = }
stats = {
scriptsDecompiled = , scriptsFailed = , scriptsSkipped = ,
scriptsStock = , scriptsDuplicate = , worldTruncated = ,
}
:() (() .Loaded:() )
LP, CollectionSvc, CoreGuiSvc, CorePackagesSvc
(()
Players = :()
LP = Players.LocalPlayer
LP
t0 = .()
Players.LocalPlayer .() - t0 < (yieldFn, )
LP = Players.LocalPlayer
)
(() CollectionSvc = :() )
(() CoreGuiSvc = :() )
(() CorePackagesSvc = :() )
(inst, key) inst[key]
(inst, key)
ok, v = (getprop, inst, key)
ok v
(inst, key)
v = (inst, key)
v ==
ok, s = (, v)
ok s
(inst)
ok, n = (inst.GetFullName, inst)
ok n
(s, max)
s = (s)
s = (s:(, ))
max = max
#s > max s = s:(, max - ) ..
s
(name)
name:() LUA_KEYWORDS[name]
.. name
esc = (name:(, ))
esc = (esc:(, ))
.. esc ..
(inst)
names, cur, guard, root = {}, inst, ,
cur ~= guard <
cur == root = ;
LP ~= cur == LP
root =
parent = cur.Parent
parent ==
root = .. cur.Name ..
names[#names + ] = cur.Name
cur = parent
guard = guard +
root ==
top = .(names)
root = .. (top )
i = #names, , -
root = root .. (names[i])
root
(inst)
ok, p = (luauPath, inst)
ok p p
(inst)
(inst)
CoreGuiSvc (, (inst.IsDescendantOf, inst, CoreGuiSvc)) ==
CorePackagesSvc (, (inst.IsDescendantOf, inst, CorePackagesSvc)) ==
(inst)
cur, guard = inst,
cur ~= guard <
STOCK_NAMES[cur.Name]
cur = cur.Parent
guard = guard +
partCache = {}
(inst, cls)
c = partCache[cls]
c ==
ok, r = (inst.IsA, inst, )
c = (ok r == )
partCache[cls] = c
c
kwCache = {}
(name)
(name) ~= name ==
cached = kwCache[name]
cached ~= cached
spaced = (name:(, )):()
hit =
tok spaced:()
KEYWORD_SET[tok] hit = ;
#tok > tok:(-) == KEYWORD_SET[tok:(, -)]
hit = ;
kwCache[name] = hit
hit
(name)
(name) ~= name ==
s = name
CONFIG.stripBracketTags s = (s:(, ))
s = (s:(, ))
s = (s:(, ))
CONFIG.asciiFileName s = (s:(, ))
s = (s:(, ))
s = s:()
s = (s:(, ))
#s > s = (s:(, ):())
s ==
s
()
okMkt, mkt = (()
:():(.PlaceId)
)
okMkt (mkt) == (mkt.Name) == mkt.Name ~=
gameMeta.name, gameMeta.source = mkt.Name,
gameMeta.name CONFIG.fetchGameMeta
(.GameId) (.GameId) >
url = .. (.GameId)
okHttp, res = (() :(url) )
okHttp (res) ==
okJson, data = (()
:():(res)
)
okJson (data) == (data.data) ==
(data.data[]) == (data.data[].name) ==
gameMeta.name, gameMeta.source = data.data[].name,
gameMeta.name
gName = (, )
gName gName ~= gName ~=
gameMeta.name, gameMeta.source = gName,
gameMeta.name, gameMeta.source = CONFIG.fallbackName,
base = (gameMeta.name)
(CONFIG.fallbackName .. .. (.PlaceId))
base, base .. CONFIG.fileSuffix
(inst)
cls = inst.ClassName
(inst, cls)
p = (inst, )
(p) == p
cls ==
ok, cf = (inst.GetPivot, inst)
ok (cf) == cf.Position
cls ==
p = (inst, )
(p) == p
(inst, cls)
CONFIG.includeCoordinates
p = (inst)
tag = (cls == )
p == POS_FROM_PARENT[cls]
parent = (inst, )
(parent) ==
p = (parent)
tag =
p ==
.(, tag, p.X, p.Y, p.Z)
(inst)
CONFIG.includeAttributes
ok, attrs = (inst.GetAttributes, inst)
ok (attrs) ~=
keys = {}
k (attrs) keys[#keys + ] = (k)
#keys ==
.(keys)
parts = {}
_, k (keys)
parts[#parts + ] = k .. .. (attrs[k], )
.. .(parts, ) ..
(inst)
CONFIG.includeTags CollectionSvc
ok, tags = (CollectionSvc.GetTags, CollectionSvc, inst)
ok (tags) ~= #tags ==
.(tags)
.. .(tags, ) ..
EXTRACT = {
Animation = (inst)
v = (inst, )
v v ~= .. v
,
Sound = (inst)
v = (inst, )
v v ~= .. v
,
ProximityPrompt = (inst)
parts = {}
action = (inst, )
obj = (inst, )
hold = (inst, )
dist = (inst, )
key = (inst, )
action action ~= parts[#parts + ] = .. (action, )
obj obj ~= parts[#parts + ] = .. (obj, )
hold hold ~= hold ~= parts[#parts + ] = .. hold ..
dist dist ~= parts[#parts + ] = .. dist
key key ~= key ~=
parts[#parts + ] = .. key:(, )
(inst, ) == parts[#parts + ] =
#parts > .(parts, )
,
ClickDetector = (inst)
dist = (inst, )
dist dist ~= .. dist
,
LocalScript = (inst)
(inst, ) ==
,
Script = (inst)
parts = {}
rc = (inst, )
rc rc ~= parts[#parts + ] = .. rc:(, )
(inst, ) == parts[#parts + ] =
#parts > .(parts, )
,
ObjectValue = (inst)
v = (inst, )
(v) == .. ((v) v.Name, )
,
}
(inst, cls)
chunks = {}
ex = EXTRACT[cls]
ex
ok, extra = (ex, inst)
ok extra extra ~= chunks[#chunks + ] = extra
VALUE_CLASSES[cls] cls ~=
v = (inst, )
v ~= chunks[#chunks + ] = .. (v, )
coords = (inst, cls)
coords chunks[#chunks + ] = coords
attrs = (inst)
attrs chunks[#chunks + ] = attrs
tags = (inst)
tags chunks[#chunks + ] = tags
#chunks ==
.. .(chunks, )
(inst, cls, path, origin, service)
item = scriptByInst[inst]
item item,
item = {
inst = inst, class = cls, name = (inst, ) ,
path = path, origin = origin, running = ,
service = service ,
}
scriptByInst[inst] = item
scriptItems[#scriptItems + ] = item
item,
(inst, cls)
hit = DIRECT_WORLD[cls]
hit (cls == (inst, cls))
hit = (inst.Name)
hit
#worldTargets >= CONFIG.maxWorldTargets
stats.worldTruncated =
worldTargets[#worldTargets + ] = {
class = cls, name = inst.Name, path = (inst),
detail = (inst, cls), inst = inst,
}
(inst, svcName)
cls = inst.ClassName
SKIP_CLASSES[cls]
WANTED[cls] seenInst[inst]
seenInst[inst] =
path = (inst)
classCounts[cls] = (classCounts[cls] ) +
entry = {
service = svcName, class = cls, name = inst.Name,
path = path, detail = (inst, cls), inst = inst,
}
entries[#entries + ] = entry
REMOTE_CLASSES[cls] remotes[#remotes + ] = entry
SCRIPT_CLASSES[cls] (inst, cls, path, , svcName)
svcName == (inst, cls)
()
_, svcName (SERVICES)
okSvc, svc = (.GetService, , svcName)
okSvc svc
okD, desc = (svc.GetDescendants, svc)
okD (desc) ==
i = , #desc
(processInstance, desc[i], svcName)
()
()
(inst, origin)
cls = inst.ClassName
SCRIPT_CLASSES[cls]
scriptByInst[inst]
(inst)
item = (inst, cls, (inst), origin)
extras[#extras + ] = item
REMOTE_CLASSES[cls] (origin == WANTED[cls])
seenInst[inst]
(inst)
seenInst[inst] =
extras[#extras + ] = {
origin = origin, class = cls, name = inst.Name, path = (inst), inst = inst,
}
(inst, label)
(inst) ~=
cls = inst.ClassName
SCRIPT_CLASSES[cls]
item = scriptByInst[inst]
item
(inst)
item = (inst, cls, (inst), label)
extras[#extras + ] = item
item.running =
()
(fn, label)
(fn) ~=
ok, list = (fn)
ok (list) ~=
i = , #list
(considerRunning, list[i], label)
()
(getrunningscripts, )
(getloadedmodules, )
()
(getgc) ~=
()
ok, gc = (getgc)
ok (gc) ~=
limit = .(#gc, CONFIG.scanGCLimit)
i = , limit
v = gc[i]
(v) == (addExtra, v, )
()
()
(getnilinstances) ~=
()
ok, list = (getnilinstances)
ok (list) ~=
i = , #list
v = list[i]
(v) == (addExtra, v, )
()
(inst)
CONFIG.dedupeByHash (getscripthash) ~=
ok, h = (getscripthash, inst)
ok (h) == h ~= h
(inst)
(decompile) ~= ,
ok, res = (CONFIG.decompileTimeout, decompile, inst)
ok , (res)
(res) ~= res == ,
res
CLASS_PRIO = { LocalScript = , ModuleScript = , Script = }
()
#scriptItems ==
queue = {}
_, item (scriptItems)
CONFIG.skipStockScripts (item.inst)
stats.scriptsStock = stats.scriptsStock +
item.prio = item.running (CLASS_PRIO[item.class] )
queue[#queue + ] = item
.(queue, (a, b)
a.prio ~= b.prio a.prio < b.prio
a.path < b.path
)
cap = (CONFIG.maxDecompiles > ) CONFIG.maxDecompiles #queue
seenHash = {}
done =
i = , #queue
item = queue[i]
done >= cap totalScriptBytes >= CONFIG.maxTotalScriptBytes
stats.scriptsSkipped = stats.scriptsSkipped +
decompiledList[#decompiledList + ] = {
path = item.path, class = item.class, ok = , service = item.service, name = item.name,
note = , source = ,
}
h = (item.inst)
h seenHash[h]
stats.scriptsDuplicate = stats.scriptsDuplicate +
decompiledList[#decompiledList + ] = {
path = item.path, class = item.class, ok = , service = item.service, name = item.name,
dupOf = seenHash[h], source = ,
}
src, err = (item.inst)
done = done +
src
h seenHash[h] = item.path
totalScriptBytes = totalScriptBytes + #src
stats.scriptsDecompiled = stats.scriptsDecompiled +
decompiledList[#decompiledList + ] = {
path = item.path, class = item.class, ok = , source = src,
service = item.service, name = item.name, running = item.running,
}
stats.scriptsFailed = stats.scriptsFailed +
decompiledList[#decompiledList + ] = {
path = item.path, class = item.class, ok = , service = item.service, name = item.name,
source = err ,
}
()
()
names = {}
_, r (remotes) names[r.name] =
_, e (extras)
REMOTE_CLASSES[e.class] names[e.name] =
(name)
s = xref[name]
s
s = { scripts = {}, scriptSet = {}, calls = {}, callSet = {} }
xref[name] = s
s
CALL_WORDS = { , , , }
_, sc (decompiledList)
sc.ok sc.source ~=
src = sc.source
(l)
names[l]
s = (l)
s.scriptSet[sc.path] #s.scripts < CONFIG.xrefMaxScriptsPerRemote
s.scriptSet[sc.path] =
s.scripts[#s.scripts + ] = sc.path
l src:() (l)
l src:() (l)
line src:()
isCall =
_, w (CALL_WORDS)
line:(w, , ) isCall = ;
isCall
tok line:()
names[tok]
s = (tok)
#s.calls < CONFIG.xrefMaxCallLines
text = line:()
key = sc.path .. text
s.callSet[key]
s.callSet[key] =
s.calls[#s.calls + ] = (text, ) .. .. sc.path ..
()
(a, b)
ta, tb = (a), (b)
ta ~= tb ta < tb
ta == ta == a < b
(a) < (b)
(v, depth, visited, budget)
t = (v)
t ==
.. (v, ):(, ) ..
t == t == t ==
(v)
t ==
.. ((v) v.Name, ) ..
t ==
t ==
visited[v]
depth >= CONFIG.moduleDumpDepth budget.n >= CONFIG.moduleDumpMaxNodes
visited[v] =
keys = {}
k (v) keys[#keys + ] = k
(.sort, keys, keyLess)
#keys == visited[v] = ;
pad = .(, depth + )
out = { }
i = , .(#keys, )
k = keys[i]
budget.n = budget.n +
ks
(k) == k:()
ks = k
ks = .. (k, depth + , visited, budget) ..
out[#out + ] = pad .. ks .. .. (v[k], depth + , visited, budget) ..
#keys > out[#out + ] = pad .. .. (#keys - ) ..
out[#out + ] = .(, depth) ..
visited[v] =
.(out, )
ok, s = (, v)
.. t .. .. (ok (s, ) ) ..
()
picked =
_, item (scriptItems)
picked >= CONFIG.maxModuleReturns
item.class == (item.name)
(CONFIG.skipStockScripts (item.inst))
picked = picked +
ok, res = (CONFIG.moduleRequireTimeout, , item.inst)
ok
okS, text = (serialize, res, , {}, { n = })
moduleReturns[#moduleReturns + ] = {
path = item.path, ok = okS, text = okS text (text),
}
moduleReturns[#moduleReturns + ] = { path = item.path, ok = , text = (res) }
()
SEP = .(, )
EQ = .(, )
(name, fn, ...)
ok, res = (fn, ...)
ok (res) == res
{ .. name .. .. (res) .. , }
(outputFile)
L = {}
(s) L[#L + ] = s
execName =
(identifyexecutor) ==
ok, a, b = (identifyexecutor)
ok a execName = (a) .. (b ( .. (b)) )
okDate, nowStr = (.date, )
displayName = gameMeta.name CONFIG.fallbackName
ENV = (() == ())
capNames = {
, , , ,
, , , , ,
, , ,
}
capParts = {}
_, n (capNames)
capParts[#capParts + ] = n .. .. (((ENV[n]) == ) )
(EQ)
( .. VERSION .. .. displayName)
(EQ)
( .. displayName .. .. gameMeta.source .. )
( .. ((, ) ))
( .. ((, ) ))
( .. ((, ) ))
( .. ((, ) )
.. )
( .. execName)
( .. (okDate nowStr ))
( .. outputFile)
outputInfo.folder
( .. outputInfo.folder .. .. CONFIG.scriptsSubfolder ..
.. outputInfo.scriptFiles .. )
()
outputInfo.full ( .. outputInfo.full)
( .. .(capParts, ))
(EQ)
#phaseErrors >
()
_, e (phaseErrors) ( .. e)
(EQ)
()
L
()
L = {}
(s) L[#L + ] = s
(SEP); (); (SEP)
sorted = {}
cls (classCounts) sorted[#sorted + ] = cls
.(sorted)
#sorted == ()
_, cls (sorted)
( .. .(, cls) .. .. classCounts[cls])
()
L
()
L = {}
(s) L[#L + ] = s
list = {}
i = , #remotes list[i] = remotes[i]
.(list, (a, b)
a.class ~= b.class a.class < b.class
a.path < b.path
)
(SEP); ( .. #list .. ); (SEP)
#list == ()
_, r (list) ( .. r.class .. .. r.path .. r.detail)
()
L
()
L = {}
(s) L[#L + ] = s
.(worldTargets, (a, b)
a.path ~= b.path a.path < b.path
a.class < b.class
)
(SEP); ( .. #worldTargets .. ); (SEP)
#worldTargets == ()
_, w (worldTargets) ( .. w.class .. .. w.path .. w.detail)
stats.worldTruncated ( .. CONFIG.maxWorldTargets)
()
L
()
L = {}
(s) L[#L + ] = s
order = {}
idx, svc (SERVICES) order[svc] = idx
sorted = {}
i = , #entries sorted[i] = entries[i]
.(sorted, (a, b)
oa, ob = order[a.service] , order[b.service]
oa ~= ob oa < ob
a.path ~= b.path a.path < b.path
a.class < b.class
)
(SEP); (); (SEP)
current
_, item (sorted)
item.service ~= current
current = item.service
(); ( .. current)
( .. item.class .. .. item.path .. item.detail)
()
L
()
L = {}
(s) L[#L + ] = s
list = {}
i = , #extras list[i] = extras[i]
.(list, (a, b)
a.origin ~= b.origin a.origin < b.origin
a.class ~= b.class a.class < b.class
a.path < b.path
)
(SEP); ( .. #list .. ); (SEP)
#list == ()
_, e (list)
( .. e.origin:() .. .. e.class .. .. e.path)
()
L
()
L = {}
(s) L[#L + ] = s
(SEP)
()
()
()
(SEP)
names = {}
n (xref) names[#names + ] = n
.(names)
#names == ()
_, n (names)
s = xref[n]
( .. n)
#s.scripts > ( .. .(s.scripts, ))
_, c (s.calls) ( .. c)
unref =
_, r (remotes) xref[r.name] unref = unref +
()
( .. unref .. )
()
L
(includeSource)
L = {}
(s) L[#L + ] = s
(SEP)
( .. stats.scriptsDecompiled ..
.. stats.scriptsFailed .. .. stats.scriptsSkipped ..
.. stats.scriptsDuplicate .. .. stats.scriptsStock .. )
(SEP)
#decompiledList == ()
includeSource
_, sc (decompiledList)
status
sc.note status = sc.note
sc.dupOf status = .. sc.dupOf
sc.ok status = .. (sc.source, )
sc.file status = sc.file .. .. #sc.source ..
status =
( .. sc.class .. (sc.running ) .. .. sc.path)
( .. status)
()
L
_, sc (decompiledList)
()
( .. .(, ))
( .. sc.path)
( .. sc.class .. (sc.running ))
( .. .(, ))
sc.note
( .. sc.note)
sc.dupOf
( .. sc.dupOf)
sc.ok
(sc.source)
( .. (sc.source))
()
L
()
L = {}
(s) L[#L + ] = s
(SEP); ( .. #moduleReturns .. ); (SEP)
_, m (moduleReturns)
()
( .. m.path)
(m.ok m.text ( .. m.text))
()
L
(outputFile)
L = {}
(s) L[#L + ] = s
gcCount, nilCount = ,
_, e (extras)
e.origin == gcCount = gcCount + e.origin == nilCount = nilCount +
(EQ); (); (EQ)
( .. #entries)
( .. #remotes)
( .. #worldTargets)
( .. stats.scriptsDecompiled)
( .. stats.scriptsFailed)
( .. stats.scriptsSkipped)
( .. stats.scriptsDuplicate)
( .. stats.scriptsStock)
( .. #extras .. .. gcCount .. .. nilCount .. )
( .. totalScriptBytes)
( .. outputFile)
(EQ)
L
(outputFile, includeSource)
lines = {}
(sec)
i = , #sec lines[#lines + ] = sec[i]
((, header, outputFile))
((, secSummary))
((, secRemotes))
((, secWorld))
((, secTree))
((, secExtras))
CONFIG.buildRemoteXref ((, secXref))
((, secScripts, includeSource))
CONFIG.dumpModuleReturns ((, secModules))
((, secStats, outputFile))
.(lines, )
(fileName, content)
(writefile) ==
(writefile, fileName, content)
(appendfile) ==
(isfile) == (delfile deletefile) ==
(()
(fileName) (delfile deletefile)(fileName)
)
okAll =
i = , #content, CONFIG.chunkSize
(appendfile, fileName, content:(i, i + CONFIG.chunkSize - ))
okAll =
i > CONFIG.chunkSize (yieldFn)
okAll
(fileName, content, suffix, allowClipboard)
mode = (fileName, content)
mode mode, fileName
plain = .. (.PlaceId) .. suffix
plain ~= fileName
mode = (plain, content)
mode mode, plain
allowClipboard (setclipboard) == (setclipboard, content)
, fileName
, fileName
(name, max)
max = max
s = (name )
s = (s:(, ))
s = (s:(, ))
CONFIG.asciiFileName s = (s:(, ))
s = (s:(, ))
s = s:()
#s > max s = s:(, max)
s = (s:(, ))
s == s =
up = s:()
up == up == up == up ==
up:() up:()
s = .. s
s
()
(makefolder) == (writefile) ==
(path)
hasIs = (isfolder) ==
hasIs
ok, exists = (isfolder, path)
ok exists
(makefolder, path)
hasIs
ok, exists = (isfolder, path)
ok exists ==
(baseName)
CONFIG.writeScriptFolder ()
root = baseName
(root)
root = .. (.PlaceId)
(root)
scriptsDir = root .. .. CONFIG.scriptsSubfolder
(scriptsDir)
outputInfo.folder = root
used, madeDir = {}, {}
written =
_, sc (decompiledList)
sc.ok sc.dupOf sc.note sc.source ~=
dir = scriptsDir .. .. (sc.service , )
madeDir[dir] == madeDir[dir] = (dir)
madeDir[dir]
rel = dir .. .. (sc.name, )
file, n = rel .. ,
used[file:()]
n = n +
file = rel .. .. n ..
used[file:()] =
hdr = .. sc.path ..
.. .. sc.class .. (sc.running ) ..
.. .. VERSION ..
(writefile, file, hdr .. sc.source)
sc.file = file
outputInfo.scriptFiles = outputInfo.scriptFiles +
outputInfo.scriptFileFails = outputInfo.scriptFileFails +
written = written +
written % == ()
()
api = {
version = VERSION,
gameName = gameMeta.name,
placeId = .PlaceId,
stats = stats,
entries = entries,
remotes = remotes,
worldTargets = worldTargets,
scripts = scriptItems,
extras = extras,
xref = xref,
}
(name)
out = {}
_, r (remotes)
r.name == name out[#out + ] = r.inst
_, e (extras)
REMOTE_CLASSES[e.class] e.name == name out[#out + ] = e.inst
out
api.(name) (name)
api.(name) (name)[]
api.(class)
out = {}
_, t (worldTargets)
t.class == class out[#out + ] = t.inst
out
api
(name, fn, ...)
ok, err = (fn, ...)
ok
phaseErrors[#phaseErrors + ] = name .. .. (err)
( .. VERSION .. .. name .. .. (err))
baseName = CONFIG.fallbackName
outputFile = baseName .. CONFIG.fileSuffix
(, () baseName, outputFile = () )
()
(, scanAll)
CONFIG.scanRunning (, collectRunning)
CONFIG.scanGC (, runGCScan)
CONFIG.scanNil (, runNilScan)
CONFIG.dumpScripts (, runScriptDump)
CONFIG.dumpScripts CONFIG.buildRemoteXref (, buildRemoteXref)
CONFIG.dumpModuleReturns (, runModuleDump)
CONFIG.dumpScripts (, writeScriptFolder, baseName)
canWrite = ((writefile) == ) ((appendfile) == )
fullFile = baseName .. CONFIG.fullSuffix
needFull = canWrite CONFIG.dumpScripts
(CONFIG.alsoWriteFullTxt outputInfo.folder == )
needFull outputInfo.full = fullFile
mapIncludesSources = canWrite
report
(, () report = (outputFile, mapIncludesSources) )
report
report = .. VERSION .. .. .(phaseErrors, )
saveMode, savedAs = (outputFile, report, CONFIG.fileSuffix, )
needFull
fullReport
(, () fullReport = (fullFile, ) )
fullReport
fMode, fName = (fullFile, fullReport, CONFIG.fullSuffix, )
fMode outputInfo.full = fName outputInfo.full =
api = ()
api.file = savedAs
api.folder = outputInfo.folder
api.fullFile = outputInfo.full
(() ().ArkxiDump = api )
tag = .. VERSION ..
saveMode ==
(tag .. )
saveMode ==
(tag .. .. savedAs .. )
extra =
outputInfo.folder
extra = extra .. .. outputInfo.scriptFiles .. .. outputInfo.folder ..
.. CONFIG.scriptsSubfolder ..
outputInfo.full extra = extra .. .. outputInfo.full ..
(tag .. .. #entries .. .. #remotes ..
.. savedAs .. .. extra .. )
apiLoads code from the internet. It downloads more code when it runs (loadstring + HttpGet), which can change after it was posted. From: raw.githubusercontent.com, games.roblox.com.
## Arkxi-DumperGo An open-source inspection tool for Roblox places. Run it in any game and get a sorted map of how it is built: remotes, interactable objects, client scripts, and which scripts call which remotes. ### What you get - **`<Game> DUMPED.txt`**: a small map with remotes, interaction targets, a remote cross-reference (scripts and call lines) and a script index - **`<Game>/Scripts/`**: every decompiled client script saved as its own `.lua` file, grouped by service - Copy-paste Luau paths for every instance - A returned `Dump` table (`getgenv().ArkxiDump`) you can use in your own tools ### Safe by design Stock Roblox scripts are skipped, identical scripts are deduplicated, each decompile has a timeout, and a failure in one step never loses the whole dump. ### Settings Change options without editing the script: ```lua getgenv().ArkxiDumperConfig = { maxDecompiles = 300, alsoWriteFullTxt = true } ``` ### Requirements Needs `writefile`. `decompile` and `makefolder` are recommended. Anything missing is skipped and listed in the dump header. ### Limits Only reads what your client can see (no server scripts). StreamingEnabled places only dump the streamed-in area. Source,
Never paste your .ROBLOSECURITY cookie anywhere, and use an alt account with scripts.

Universal