--[[ MINI DEX EXPLORER v2.1
Hierarchy tree / child counts / search / property filter / selection ESP
Long-press action sheet: copy path, copy name, download (BETA) + SOON tiles
Close to a draggable reopen pill - touch-native, no external libraries
]]
--// SESSION GUARD
getgenv().MiniDexSession = (getgenv().MiniDexSession or 0) + 1
local SESSION = getgenv().MiniDexSession
local function alive()
return getgenv().MiniDexSession == SESSION
end
--// DISCONNECT STALE GAME-LEVEL HOOKS
if getgenv().MiniDexConns then
for _, c in ipairs(getgenv().MiniDexConns) do
pcall(function() c:Disconnect() end)
end
end
getgenv().MiniDexConns = {}
local function hook(signal, fn)
pcall(function()
table.insert(getgenv().MiniDexConns, signal:Connect(fn))
end)
end
--// SERVICES
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local lplr = Players.LocalPlayer
if not game:IsLoaded() then
game.Loaded:Wait()
end
local function getHRP()
local char = lplr.Character
return char and char:FindFirstChild("HumanoidRootPart") or nil
end
--// SLIM CLASS TABLE
local CAT_COLORS = {
Service = Color3.fromRGB(100, 170, 255),
Script = Color3.fromRGB(255, 180, 90),
Gui = Color3.fromRGB(100, 230, 150),
Remote = Color3.fromRGB(255, 110, 110),
Part = Color3.fromRGB(200, 205, 215),
Data = Color3.fromRGB(215, 140, 255),
Other = Color3.fromRGB(155, 155, 165),
}
local SERVICE_CLASSES = {
DataModel = true, Workspace = true, Players = true, ReplicatedStorage = true,
ReplicatedFirst = true, StarterGui = true, StarterPack = true, StarterPlayer = true,
Lighting = true, SoundService = true, TweenService = true, RunService = true,
Teams = true, TextService = true, Chat = true, CoreGui = true, GuiService = true,
UserInputService = true, ContextActionService = true, HttpService = true,
MarketplaceService = true, TeleportService = true, PhysicsService = true,
CollectionService = true, Debris = true, PathfindingService = true,
}
local function categoryOf(obj)
if SERVICE_CLASSES[obj.ClassName] then return "Service" end
if obj:IsA("LuaSourceContainer") then return "Script" end
if obj:IsA("RemoteEvent") or obj:IsA("RemoteFunction")
or obj:IsA("BindableEvent") or obj:IsA("BindableFunction") then
return "Remote"
end
if obj:IsA("GuiObject") or obj:IsA("LayerCollector") then return "Gui" end
if obj:IsA("BasePart") then return "Part" end
if obj:IsA("ValueBase") then return "Data" end
return "Other"
end
local function propsFor(obj)
local list = { "Name" }
local function add(t)
for _, k in ipairs(t) do list[#list + 1] = k end
end
if obj:IsA("BasePart") then
add({ "Position", "Size", "Anchored", "CanCollide", "Transparency", "Reflectance", "Color", "Material" })
elseif obj:IsA("Humanoid") then
add({ "Health", "MaxHealth", "WalkSpeed", "JumpPower", "JumpHeight", "PlatformStand", "Sit" })
elseif obj:IsA("LuaSourceContainer") then
if not obj:IsA("ModuleScript") then add({ "Disabled" }) end
elseif obj:IsA("ValueBase") then
add({ "Value" })
elseif obj:IsA("LayerCollector") then
add({ "Enabled" })
elseif obj:IsA("GuiObject") then
add({ "Visible", "BackgroundTransparency", "ZIndex" })
if obj:IsA("TextLabel") or obj:IsA("TextButton") or obj:IsA("TextBox") then
add({ "Text", "TextSize" })
end
elseif obj:IsA("Sound") then
add({ "Volume", "PlaybackSpeed", "Looped", "Playing" })
elseif obj:IsA("Light") then
add({ "Enabled", "Brightness", "Range" })
elseif obj:IsA("ParticleEmitter") then
add({ "Enabled", "Rate" })
elseif obj:IsA("Camera") then
add({ "FieldOfView" })
end
return list
end
local function fmtVal(v)
local t = typeof(v)
if t == "Vector3" then
return string.format("%.1f, %.1f, %.1f", v.X, v.Y, v.Z)
elseif t == "Color3" then
return string.format("%d, %d, %d",
math.floor(v.R * 255 + 0.5), math.floor(v.G * 255 + 0.5), math.floor(v.B * 255 + 0.5))
elseif t == "CFrame" then
local p = v.Position
return string.format("%.1f, %.1f, %.1f (rot locked)", p.X, p.Y, p.Z)
elseif t == "Instance" then
return v.Name
elseif t == "number" then
return string.format("%.2f", v)
end
return tostring(v)
end
local function parseVal(text, current)
local t = typeof(current)
if t == "number" then
return tonumber(text)
elseif t == "boolean" then
local l = text:lower()
if l == "true" then return true end
if l == "false" then return false end
return nil
elseif t == "string" then
return text
elseif t == "Vector3" or t == "Color3" then
local a, b, c = text:match("^%s*([%-%d%.]+)%s*,%s*([%-%d%.]+)%s*,%s*([%-%d%.]+)%s*$")
if a then
a, b, c = tonumber(a), tonumber(b), tonumber(c)
if t == "Vector3" then return Vector3.new(a, b, c) end
return Color3.fromRGB(a, b, c)
end
end
return nil
end
local function pathOf(obj)
local parts = {}
local cur = obj
while cur and cur ~= game do
parts[#parts + 1] = (cur.Name:gsub("[<>]", ""))
cur = cur.Parent
end
local s = "game." .. table.concat(parts, ".")
if #s > 64 then
s = "..." .. s:sub(-61)
end
return s
end
local function copyText(str)
if type(setclipboard) == "function" then
pcall(setclipboard, str)
return true
elseif type(toclipboard) == "function" then
pcall(toclipboard, str)
return true
end
return false
end
--// EXPORT / DOWNLOAD (BETA)
local function sanitizeName(s)
s = (s or "instance"):gsub("[^%w_%-]", "_")
if s == "" then
s = "instance"
end
return s:sub(1, 40)
end
local function dumpInstance(obj)
local out = {
"# MiniDex instance export (BETA)",
"# " .. pathOf(obj) .. " [" .. obj.ClassName .. "]",
}
local lines = 0
local function emit(s)
if lines < 400 then
out[#out + 1] = s
lines = lines + 1
end
end
local function walkDump(o, depth)
if lines >= 400 then
return
end
emit(string.rep(" ", depth) .. o.Name .. " [" .. o.ClassName .. "]")
for _, key in ipairs(propsFor(o)) do
local ok, v = pcall(function() return o[key] end)
if ok then
emit(string.rep(" ", depth + 1) .. key .. " = " .. fmtVal(v))
end
end
if depth < 3 then
local ok, kids = pcall(function() return o:GetChildren() end)
if ok then
for _, k in ipairs(kids) do
walkDump(k, depth + 1)
end
end
end
end
walkDump(obj, 0)
if lines >= 400 then
out[#out + 1] = "... (truncated at 400 lines)"
end
return table.concat(out, "\n")
end
local function downloadObj(obj)
local content, ext
if obj:IsA("LuaSourceContainer") then
ext = "lua"
local src
if type(decompile) == "function" then
local ok, res = pcall(decompile, obj)
if ok and type(res) == "string" and res ~= "" then
src = res
end
end
if not src then
local ok, res = pcall(function() return obj.Source end)
if ok and type(res) == "string" and res ~= "" then
src = res
end
end
if not src and type(getscriptbytecode) == "function" then
local ok, res = pcall(getscriptbytecode, obj)
if ok and type(res) == "string" and res ~= "" then
src, ext = res, "luac"
end
end
if not src then
return false, "Source not readable on this executor - beta limitation"
end
content = src
else
ext = "txt"
content = dumpInstance(obj)
end
local fname = "MiniDex/" .. sanitizeName(obj.Name) .. "." .. ext
if type(writefile) == "function" then
pcall(function()
if type(makefolder) == "function" then
makefolder("MiniDex")
end
end)
local ok, err = pcall(writefile, fname, content)
if ok then
return true, "Saved to executor storage: " .. fname
end
return false, "writefile failed: " .. tostring(err)
end
if copyText(content) then
return true, "No file API here - content copied to clipboard instead"
end
return false, "No file API and no clipboard on this executor"
end
--// STATE
local expanded = {}
local visible = {}
local selected
local searchQuery = ""
local propFilter = ""
local dirty = true
local truncated = false
local ROW_H = 22
local MAX_ROWS = 500
local render, renderProps, openWindow, closeWindow, openSheet, sheetTarget
--// SELECTION ESP HIGHLIGHT
local espHighlight = nil
local espBillboard = nil
local function clearESP()
if espHighlight then
pcall(function() espHighlight:Destroy() end)
espHighlight = nil
end
if espBillboard then
pcall(function() espBillboard:Destroy() end)
espBillboard = nil
end
end
local function setESP(obj)
clearESP()
if not obj then return end
pcall(function()
local adornee
local isModel = false
if obj:IsA("BasePart") then
adornee = obj
elseif obj:IsA("Model") then
adornee = obj
isModel = true
elseif obj:IsA("Attachment") then
adornee = obj.Parent
else
return -- no spatial form
end
local col = isModel and Color3.fromRGB(255, 200, 70)
or Color3.fromRGB(60, 230, 255)
espHighlight = Instance.new("Highlight")
espHighlight.Name = "MiniDexESP"
espHighlight.Adornee = adornee
espHighlight.FillColor = col
espHighlight.FillTransparency = 0.75
espHighlight.OutlineColor = col
espHighlight.OutlineTransparency = 0
espHighlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
espHighlight.Parent = adornee
local bbPart
if isModel then
local ok, cf = pcall(function() return adornee:GetPivot() end)
bbPart = Instance.new("Part")
bbPart.Anchored = true
bbPart.CanCollide = false
bbPart.CanQuery = false
bbPart.CanTouch = false
bbPart.Transparency = 1
bbPart.Size = Vector3.new(1, 1, 1)
bbPart.CFrame = ok and cf or CFrame.new(0, 50, 0)
bbPart.Parent = workspace
espBillboard = bbPart
end
local target = bbPart or adornee
if target:IsA("BasePart") then
local bb = Instance.new("BillboardGui")
bb.Name = "MiniDexLabel"
bb.Adornee = target
bb.Size = UDim2.fromOffset(160, 26)
bb.StudsOffset = Vector3.new(0, 2.2, 0)
bb.AlwaysOnTop = true
bb.Parent = target
local lbl = Instance.new("TextLabel")
lbl.Size = UDim2.new(1, 0, 1, 0)
lbl.BackgroundTransparency = 1
lbl.Font = Enum.Font.GothamBold
lbl.TextSize = 13
lbl.TextColor3 = Color3.new(1, 1, 1)
lbl.TextStrokeColor3 = Color3.new(0, 0, 0)
lbl.TextStrokeTransparency = 0.3
lbl.TextTruncate = Enum.TextTruncate.AtEnd
lbl.Text = obj.Name
lbl.Parent = bb
end
end)
end
--// TREE
local function sortedChildren(obj)
local ok, kids = pcall(function() return obj:GetChildren() end)
if not ok then return {} end
table.sort(kids, function(a, b)
local sa = SERVICE_CLASSES[a.ClassName] and 0 or 1
local sb = SERVICE_CLASSES[b.ClassName] and 0 or 1
if sa ~= sb then return sa < sb end
local ca, cb = a.ClassName, b.ClassName
if ca ~= cb then return ca < cb end
return a.Name:lower() < b.Name:lower()
end)
return kids
end
local function walk(obj, depth)
if #visible >= MAX_ROWS then
truncated = true
return
end
visible[#visible + 1] = { obj = obj, depth = depth }
if expanded[obj] then
for _, child in ipairs(sortedChildren(obj)) do
walk(child, depth + 1)
end
end
end
local function buildVisible()
visible = {}
truncated = false
if searchQuery ~= "" then
local q = searchQuery:lower()
local stack = {}
local roots = sortedChildren(game)
for i = #roots, 1, -1 do
stack[#stack + 1] = { obj = roots[i], depth = 1 }
end
local visited = 0
while #stack > 0 and #visible < 120 and visited < 6000 do
local node = table.remove(stack)
visited = visited + 1
local o = node.obj
local okN, name = pcall(function() return o.Name end)
local okC, cls = pcall(function() return o.ClassName end)
if okN and okC then
if name:lower():find(q, 1, true) or cls:lower():find(q, 1, true) then
visible[#visible + 1] = { obj = o, depth = node.depth }
end
local kids = sortedChildren(o)
for i = #kids, 1, -1 do
stack[#stack + 1] = { obj = kids[i], depth = node.depth + 1 }
end
end
end
else
walk(game, 0)
if truncated and #visible > 0 then
visible[#visible] = {
notice = true,
depth = 0,
text = "... more items - collapse nodes or use Search",
}
end
end
end
--// GUI
if getgenv().MiniDexGUI then
pcall(function() getgenv().MiniDexGUI:Destroy() end)
end
clearESP()
local screen = Instance.new("ScreenGui")
screen.Name = "MiniDex"
screen.ResetOnSpawn = false
do
local parent
local okH, resH = pcall(function() return gethui() end)
if okH and resH then
parent = resH
else
local okC, resC = pcall(function() return game:GetService("CoreGui") end)
parent = (okC and resC) or lplr:WaitForChild("PlayerGui")
end
screen.Parent = parent
end
getgenv().MiniDexGUI = screen
local function makeDraggable(handle, target)
local dragging, startInput, startPos, moved
handle.Active = true
handle.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Touch
or input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = true
moved = false
startInput = input.Position
startPos = target.Position
end
end)
handle.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Touch
or input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = false
end
end)
UserInputService.InputChanged:Connect(function(input)
if not dragging then return end
if input.UserInputType == Enum.UserInputType.Touch
or input.UserInputType == Enum.UserInputType.MouseMovement then
local d = input.Position - startInput
if d.Magnitude > 6 then
moved = true
end
if moved then
target.Position = UDim2.new(
startPos.X.Scale, startPos.X.Offset + d.X,
startPos.Y.Scale, startPos.Y.Offset + d.Y)
end
end
end)
end
local main = Instance.new("Frame")
main.Size = UDim2.fromOffset(310, 470)
main.Position = UDim2.new(0.5, -155, 0.5, -235)
main.BackgroundColor3 = Color3.fromRGB(18, 20, 26)
main.Active = true
main.Parent = screen
Instance.new("UICorner", main).CornerRadius = UDim.new(0, 12)
local stripe = Instance.new("Frame")
stripe.Size = UDim2.new(0, 4, 0, 470)
stripe.Position = UDim2.new(0, 0, 0, 0)
stripe.BackgroundColor3 = Color3.fromRGB(60, 140, 255)
stripe.BorderSizePixel = 0
stripe.ZIndex = 3
stripe.Parent = main
Instance.new("UICorner", stripe).CornerRadius = UDim.new(0, 12)
local header = Instance.new("TextLabel")
header.Size = UDim2.new(1, -4, 0, 38)
header.Position = UDim2.new(0, 4, 0, 0)
header.BackgroundColor3 = Color3.fromRGB(30, 38, 58)
header.Font = Enum.Font.GothamBold
header.TextSize = 15
header.TextColor3 = Color3.new(1, 1, 1)
header.TextXAlignment = Enum.TextXAlignment.Left
header.Text = " DEX"
header.ZIndex = 2
header.Parent = main
Instance.new("UICorner", header).CornerRadius = UDim.new(0, 12)
do
local fix = Instance.new("Frame")
fix.Size = UDim2.new(1, -4, 0, 10)
fix.Position = UDim2.new(0, 4, 0, 28)
fix.BackgroundColor3 = Color3.fromRGB(30, 38, 58)
fix.BorderSizePixel = 0
fix.ZIndex = 1
fix.Parent = main
end
makeDraggable(header, main)
local function makeIconButton(text, x, cb, color)
local b = Instance.new("TextButton")
b.Size = UDim2.new(0, 32, 0, 28)
b.Position = UDim2.new(1, x, 0, 5)
b.BackgroundColor3 = color or Color3.fromRGB(55, 75, 130)
b.Font = Enum.Font.GothamBold
b.TextSize = 13
b.TextColor3 = Color3.new(1, 1, 1)
b.Text = text
b.ZIndex = 3
b.Parent = main
Instance.new("UICorner", b).CornerRadius = UDim.new(0, 8)
b.MouseButton1Click:Connect(cb)
return b
end
makeIconButton("R", -78, function()
dirty = true
pcall(render)
end)
makeIconButton("X", -42, function()
closeWindow()
end, Color3.fromRGB(180, 60, 60))
local search = Instance.new("TextBox")
search.Size = UDim2.new(1, -18, 0, 30)
search.Position = UDim2.new(0, 10, 0, 44)
search.BackgroundColor3 = Color3.fromRGB(30, 33, 42)
search.Font = Enum.Font.Gotham
search.TextSize = 13
search.TextColor3 = Color3.new(1, 1, 1)
search.PlaceholderText = "Search name or class..."
search.PlaceholderColor3 = Color3.fromRGB(120, 125, 140)
search.ClearTextOnFocus = false
search.Text = ""
search.Parent = main
Instance.new("UICorner", search).CornerRadius = UDim.new(0, 8)
local treeFrame = Instance.new("ScrollingFrame")
treeFrame.Size = UDim2.new(1, -18, 0, 182)
treeFrame.Position = UDim2.new(0, 10, 0, 80)
treeFrame.BackgroundColor3 = Color3.fromRGB(24, 27, 35)
treeFrame.BorderSizePixel = 0
treeFrame.ScrollBarThickness = 4
treeFrame.ScrollBarImageColor3 = Color3.fromRGB(80, 110, 190)
treeFrame.AutomaticCanvasSize = Enum.AutomaticSize.None
treeFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
treeFrame.Parent = main
Instance.new("UICorner", treeFrame).CornerRadius = UDim.new(0, 10)
local propsHeader = Instance.new("TextLabel")
propsHeader.Size = UDim2.new(0.44, -8, 0, 24)
propsHeader.Position = UDim2.new(0, 10, 0, 266)
propsHeader.BackgroundTransparency = 1
propsHeader.Font = Enum.Font.GothamSemibold
propsHeader.TextSize = 11
propsHeader.TextColor3 = Color3.fromRGB(120, 170, 255)
propsHeader.TextXAlignment = Enum.TextXAlignment.Left
propsHeader.TextTruncate = Enum.TextTruncate.AtEnd
propsHeader.Text = "PROPERTIES"
propsHeader.Parent = main
local propsFilter = Instance.new("TextBox")
propsFilter.Size = UDim2.new(0.56, -12, 0, 24)
propsFilter.Position = UDim2.new(0.44, 2, 0, 266)
propsFilter.BackgroundColor3 = Color3.fromRGB(30, 33, 42)
propsFilter.Font = Enum.Font.Gotham
propsFilter.TextSize = 11
propsFilter.TextColor3 = Color3.new(1, 1, 1)
propsFilter.PlaceholderText = "Filter props..."
propsFilter.PlaceholderColor3 = Color3.fromRGB(120, 125, 140)
propsFilter.ClearTextOnFocus = false
propsFilter.Text = ""
propsFilter.Parent = main
Instance.new("UICorner", propsFilter).CornerRadius = UDim.new(0, 8)
local propsFrame = Instance.new("ScrollingFrame")
propsFrame.Size = UDim2.new(1, -18, 0, 108)
propsFrame.Position = UDim2.new(0, 10, 0, 294)
propsFrame.BackgroundColor3 = Color3.fromRGB(24, 27, 35)
propsFrame.BorderSizePixel = 0
propsFrame.ScrollBarThickness = 4
propsFrame.ScrollBarImageColor3 = Color3.fromRGB(80, 110, 190)
propsFrame.AutomaticCanvasSize = Enum.AutomaticSize.None
propsFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
propsFrame.Parent = main
Instance.new("UICorner", propsFrame).CornerRadius = UDim.new(0, 10)
--// REOPEN PILL
local pill = Instance.new("TextButton")
pill.Size = UDim2.fromOffset(50, 50)
pill.Position = UDim2.new(0, 16, 0.5, -25)
pill.BackgroundColor3 = Color3.fromRGB(40, 90, 200)
pill.BackgroundTransparency = 0.1
pill.Font = Enum.Font.GothamBold
pill.TextSize = 12
pill.TextColor3 = Color3.new(1, 1, 1)
pill.Text = "DEX"
pill.Visible = false
pill.Parent = screen
Instance.new("UICorner", pill).CornerRadius = UDim.new(1, 0)
local pillWasDragged = false
do
local dragging, startInput, startPos
pill.Active = true
pill.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Touch
or input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = true
pillWasDragged = false
startInput = input.Position
startPos = pill.Position
end
end)
pill.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Touch
or input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = false
if not pillWasDragged then
openWindow()
end
end
end)
UserInputService.InputChanged:Connect(function(input)
if not dragging then return end
if input.UserInputType == Enum.UserInputType.Touch
or input.UserInputType == Enum.UserInputType.MouseMovement then
local d = input.Position - startInput
if d.Magnitude > 6 then
pillWasDragged = true
end
if pillWasDragged then
pill.Position = UDim2.new(
startPos.X.Scale, startPos.X.Offset + d.X,
startPos.Y.Scale, startPos.Y.Offset + d.Y)
end
end
end)
end
closeWindow = function()
main.Visible = false
pill.Visible = true
end
openWindow = function()
main.Visible = true
pill.Visible = false
dirty = true
pcall(render)
end
--// ACTION SHEET (long-press / right-click)
local sheetOverlay = Instance.new("TextButton")
sheetOverlay.Size = UDim2.fromScale(1, 1)
sheetOverlay.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
sheetOverlay.BackgroundTransparency = 0.55
sheetOverlay.BorderSizePixel = 0
sheetOverlay.Text = ""
sheetOverlay.AutoButtonColor = false
sheetOverlay.ZIndex = 50
sheetOverlay.Visible = false
sheetOverlay.Parent = screen
local sheet = Instance.new("TextButton")
sheet.Size = UDim2.fromOffset(270, 330)
sheet.Position = UDim2.new(0.5, -135, 0.5, -165)
sheet.BackgroundColor3 = Color3.fromRGB(24, 27, 35)
sheet.Text = ""
sheet.AutoButtonColor = false
sheet.ZIndex = 51
sheet.Parent = sheetOverlay
Instance.new("UICorner", sheet).CornerRadius = UDim.new(0, 12)
local sheetTitle = Instance.new("TextLabel")
sheetTitle.Size = UDim2.new(1, -52, 0, 32)
sheetTitle.Position = UDim2.new(0, 12, 0, 10)
sheetTitle.BackgroundTransparency = 1
sheetTitle.Font = Enum.Font.GothamSemibold
sheetTitle.TextSize = 13
sheetTitle.TextColor3 = Color3.new(1, 1, 1)
sheetTitle.TextXAlignment = Enum.TextXAlignment.Left
sheetTitle.TextTruncate = Enum.TextTruncate.AtEnd
sheetTitle.ZIndex = 52
sheetTitle.Parent = sheet
local sheetClose = Instance.new("TextButton")
sheetClose.Size = UDim2.new(0, 32, 0, 28)
sheetClose.Position = UDim2.new(1, -42, 0, 12)
sheetClose.BackgroundColor3 = Color3.fromRGB(180, 60, 60)
sheetClose.Font = Enum.Font.GothamBold
sheetClose.TextSize = 13
sheetClose.TextColor3 = Color3.new(1, 1, 1)
sheetClose.Text = "X"
sheetClose.ZIndex = 52
sheetClose.Parent = sheet
Instance.new("UICorner", sheetClose).CornerRadius = UDim.new(0, 8)
local sheetStatus = Instance.new("TextLabel")
sheetStatus.Size = UDim2.new(1, -24, 0, 32)
sheetStatus.Position = UDim2.new(0, 12, 0, 292)
sheetStatus.BackgroundTransparency = 1
sheetStatus.Font = Enum.Font.Gotham
sheetStatus.TextSize = 10
sheetStatus.TextColor3 = Color3.fromRGB(150, 165, 200)
sheetStatus.TextWrapped = true
sheetStatus.TextYAlignment = Enum.TextYAlignment.Top
sheetStatus.TextXAlignment = Enum.TextXAlignment.Left
sheetStatus.ZIndex = 52
sheetStatus.Text = "Download is BETA - file APIs may be missing or break on this executor."
sheetStatus.Parent = sheet
local function setSheetStatus(msg)
sheetStatus.Text = msg
end
local function closeSheet()
sheetOverlay.Visible = false
sheetTarget = nil
end
openSheet = function(obj)
sheetTarget = obj
sheetTitle.Text = obj.Name .. " [" .. obj.ClassName .. "]"
setSheetStatus("Download is BETA - file APIs may be missing or break on this executor.")
sheetOverlay.Visible = true
end
sheetClose.MouseButton1Click:Connect(closeSheet)
sheetOverlay.MouseButton1Click:Connect(closeSheet)
local function makeTile(text, x, y, opts)
local b = Instance.new("TextButton")
b.Size = UDim2.new(0, 118, 0, 52)
b.Position = UDim2.new(0, x, 0, y)
b.BackgroundColor3 = opts.active and Color3.fromRGB(42, 70, 140)
or Color3.fromRGB(38, 42, 54)
b.Text = ""
b.AutoButtonColor = opts.active
b.ZIndex = 52
b.Parent = sheet
Instance.new("UICorner", b).CornerRadius = UDim.new(0, 10)
local lbl = Instance.new("TextLabel")
lbl.Size = UDim2.new(1, -12, 0, 18)
lbl.Position = UDim2.new(0, 10, 0, 9)
lbl.BackgroundTransparency = 1
lbl.Font = Enum.Font.GothamSemibold
lbl.TextSize = 12
lbl.TextColor3 = opts.active and Color3.new(1, 1, 1)
or Color3.fromRGB(120, 125, 145)
lbl.TextXAlignment = Enum.TextXAlignment.Left
lbl.TextTruncate = Enum.TextTruncate.AtEnd
lbl.Text = text
lbl.ZIndex = 53
lbl.Parent = b
if opts.tag then
local tag = Instance.new("TextLabel")
tag.Size = UDim2.new(0, 38, 0, 13)
tag.Position = UDim2.new(0, 10, 0, 31)
tag.BackgroundColor3 = opts.tagColor or Color3.fromRGB(150, 60, 60)
tag.Font = Enum.Font.GothamBold
tag.TextSize = 8
tag.TextColor3 = Color3.new(1, 1, 1)
tag.Text = opts.tag
tag.ZIndex = 53
tag.Parent = b
Instance.new("UICorner", tag).CornerRadius = UDim.new(0, 4)
end
b.MouseButton1Click:Connect(opts.onClick)
return b
end
local function soonTile()
setSheetStatus("Coming soon.")
end
-- live actions
makeTile("Copy Path", 12, 52, {
active = true,
onClick = function()
local obj = sheetTarget
if not obj then return end
local p = pathOf(obj)
if copyText(p) then
setSheetStatus("Copied path: " .. p)
else
setSheetStatus(p)
end
end,
})
makeTile("Copy Name", 138, 52, {
active = true,
onClick = function()
local obj = sheetTarget
if not obj then return end
if copyText(obj.Name) then
setSheetStatus("Copied name: " .. obj.Name)
else
setSheetStatus(obj.Name)
end
end,
})
makeTile("Download", 12, 112, {
active = true,
tag = "BETA",
onClick = function()
local obj = sheetTarget
if not obj then return end
setSheetStatus("Exporting...")
task.spawn(function()
local ok, msg = downloadObj(obj)
if alive() then
setSheetStatus(msg or "Done")
end
end)
end,
})
-- coming soon placeholders
makeTile("Copy Source", 138, 112, { tag = "SOON", tagColor = Color3.fromRGB(70, 75, 95), onClick = soonTile })
makeTile("Save Instance", 12, 172, { tag = "SOON", tagColor = Color3.fromRGB(70, 75, 95), onClick = soonTile })
makeTile("Decompile", 138, 172, { tag = "SOON", tagColor = Color3.fromRGB(70, 75, 95), onClick = soonTile })
makeTile("Export JSON", 12, 232, { tag = "SOON", tagColor = Color3.fromRGB(70, 75, 95), onClick = soonTile })
makeTile("Insert Clone", 138, 232, { tag = "SOON", tagColor = Color3.fromRGB(70, 75, 95), onClick = soonTile })
--// LONG-PRESS TRACKING
local holdActive = false
local holdStart = Vector3.zero
local holdToken = 0
UserInputService.InputChanged:Connect(function(input)
if not holdActive then return end
if input.UserInputType == Enum.UserInputType.Touch
or input.UserInputType == Enum.UserInputType.MouseMovement then
if (input.Position - holdStart).Magnitude > 8 then
holdActive = false
holdToken = holdToken + 1
end
end
end)
--// ROW POOL + RENDER
local rowPool = {}
local function getRow(i)
local r = rowPool[i]
if r then return r end
local toggle = Instance.new("TextButton")
toggle.Size = UDim2.new(0, 22, 0, ROW_H)
toggle.BackgroundTransparency = 1
toggle.Font = Enum.Font.GothamBold
toggle.TextSize = 11
toggle.TextColor3 = Color3.fromRGB(195, 205, 230)
toggle.Text = ""
toggle.AutoButtonColor = false
toggle.ZIndex = 3
toggle.Parent = treeFrame
local guide = Instance.new("Frame")
guide.Size = UDim2.new(0, 1, 0, ROW_H - 6)
guide.BackgroundColor3 = Color3.fromRGB(52, 58, 78)
guide.BorderSizePixel = 0
guide.ZIndex = 2
guide.Parent = treeFrame
local sel = Instance.new("TextButton")
sel.BackgroundColor3 = Color3.fromRGB(30, 33, 42)
sel.Font = Enum.Font.Gotham
sel.TextSize = 12
sel.TextColor3 = Color3.new(1, 1, 1)
sel.TextXAlignment = Enum.TextXAlignment.Left
sel.TextTruncate = Enum.TextTruncate.AtEnd
sel.RichText = true
sel.ZIndex = 2
sel.Parent = treeFrame
Instance.new("UICorner", sel).CornerRadius = UDim.new(0, 6)
r = { toggle = toggle, guide = guide, sel = sel, node = nil }
rowPool[i] = r
toggle.MouseButton1Click:Connect(function()
local n = rowPool[i].node
if not n or not n.obj then return end
expanded[n.obj] = not expanded[n.obj]
dirty = true
render()
end)
sel.MouseButton1Click:Connect(function()
local n = rowPool[i].node
if not n or not n.obj then return end
selected = n.obj
setESP(n.obj)
render()
renderProps()
end)
-- long-press opens the action sheet; right-click opens it directly
sel.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Touch
or input.UserInputType == Enum.UserInputType.MouseButton1 then
holdActive = true
holdStart = input.Position
holdToken = holdToken + 1
local myToken = holdToken
task.delay(0.5, function()
if not alive() then return end
if holdActive and myToken == holdToken then
local n = rowPool[i].node
if n and n.obj then
openSheet(n.obj)
end
end
end)
elseif input.UserInputType == Enum.UserInputType.MouseButton2 then
local n = rowPool[i].node
if n and n.obj then
openSheet(n.obj)
end
end
end)
sel.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Touch
or input.UserInputType == Enum.UserInputType.MouseButton1 then
holdActive = false
holdToken = holdToken + 1
end
end)
return r
end
render = function()
buildVisible()
local canvasY = treeFrame.CanvasPosition.Y
local n = #visible
for i = 1, math.max(n, #rowPool) do
local r = rowPool[i]
if i > n then
if r then
r.toggle.Visible = false
r.guide.Visible = false
r.sel.Visible = false
end
else
r = getRow(i)
local node = visible[i]
r.node = node
r.toggle.Visible = true
r.sel.Visible = true
local depth = math.min(node.depth, 8)
local y = (i - 1) * ROW_H
local indent = 6 + depth * 13
r.guide.Visible = depth > 0
r.guide.Position = UDim2.new(0, indent - 5, 0, y + 3)
r.toggle.Position = UDim2.new(0, indent - 2, 0, y)
r.sel.Position = UDim2.new(0, indent + 20, 0, y)
r.sel.Size = UDim2.new(1, -(indent + 26), 0, ROW_H)
if node.notice then
r.node = nil
r.guide.Visible = false
r.toggle.Text = ""
r.sel.Font = Enum.Font.Gotham
r.sel.Text = "" .. node.text .. ""
r.sel.TextColor3 = Color3.fromRGB(135, 135, 150)
r.sel.BackgroundColor3 = Color3.fromRGB(30, 33, 42)
else
local obj = node.obj
local okK, kids = pcall(function() return obj:GetChildren() end)
local count = okK and #kids or 0
local hasKids = count > 0
local isOpen = expanded[obj] == true
r.toggle.Text = hasKids and (isOpen and "v" or ">") or ""
r.toggle.TextColor3 = hasKids and Color3.fromRGB(200, 215, 255)
or Color3.fromRGB(105, 115, 135)
local cat = categoryOf(obj)
local col = CAT_COLORS[cat] or CAT_COLORS.Other
local countTxt = hasKids
and (" (" .. count .. ")")
or ""
r.sel.Text = (obj.Name:gsub("[<>]", ""))
.. countTxt
.. " " .. obj.ClassName .. ""
r.sel.TextColor3 = col
r.sel.Font = (cat == "Service")
and Enum.Font.GothamSemibold
or Enum.Font.Gotham
r.sel.BackgroundColor3 = (selected == obj)
and Color3.fromRGB(50, 70, 115)
or Color3.fromRGB(30, 33, 42)
end
end
end
treeFrame.CanvasSize = UDim2.new(0, 0, 0, math.max(n, 1) * ROW_H + 6)
local maxScroll = math.max(0, n * ROW_H - 176)
treeFrame.CanvasPosition = Vector2.new(0, math.min(canvasY, maxScroll))
end
renderProps = function()
for _, child in ipairs(propsFrame:GetChildren()) do
if child:IsA("GuiObject") then
child:Destroy()
end
end
if not selected then
propsHeader.Text = "PROPERTIES"
return
end
local okSel = pcall(function() return selected.Name end)
if not okSel then
selected = nil
clearESP()
propsHeader.Text = "PROPERTIES"
return
end
propsHeader.Text = selected.ClassName .. " | " .. pathOf(selected)
local target = selected
local pf = propFilter:lower()
local y = 3
local shown = 0
for _, key in ipairs(propsFor(target)) do
if pf == "" or key:lower():find(pf, 1, true) then
local okGet, val = pcall(function() return target[key] end)
if okGet then
local lbl = Instance.new("TextLabel")
lbl.Size = UDim2.new(0.42, -8, 0, 22)
lbl.Position = UDim2.new(0, 6, 0, y)
lbl.BackgroundTransparency = 1
lbl.Font = Enum.Font.Gotham
lbl.TextSize = 11
lbl.TextColor3 = Color3.fromRGB(165, 175, 200)
lbl.TextXAlignment = Enum.TextXAlignment.Left
lbl.TextTruncate = Enum.TextTruncate.AtEnd
lbl.Text = key
lbl.Parent = propsFrame
local box = Instance.new("TextBox")
box.Size = UDim2.new(0.58, -12, 0, 22)
box.Position = UDim2.new(0.42, 2, 0, y)
box.BackgroundColor3 = Color3.fromRGB(36, 40, 52)
box.Font = Enum.Font.Gotham
box.TextSize = 11
box.TextColor3 = Color3.new(1, 1, 1)
box.TextXAlignment = Enum.TextXAlignment.Left
box.ClearTextOnFocus = false
box.Text = fmtVal(val)
box.Parent = propsFrame
Instance.new("UICorner", box).CornerRadius = UDim.new(0, 6)
local t = typeof(val)
local editable = (t == "number" or t == "boolean" or t == "string"
or t == "Vector3" or t == "Color3")
if editable then
box.FocusLost:Connect(function()
if not pcall(function() return target[key] end) then return end
local parsed = parseVal(box.Text, val)
if parsed ~= nil then
local okSet = pcall(function() target[key] = parsed end)
if okSet then
val = parsed
box.Text = fmtVal(parsed)
dirty = true
if key == "Name" then
render()
end
else
box.Text = fmtVal(val)
end
else
box.Text = fmtVal(val)
end
end)
else
box.TextEditable = false
box.TextColor3 = Color3.fromRGB(125, 135, 160)
end
shown = shown + 1
y = y + 25
end
end
end
if shown == 0 then
local nl = Instance.new("TextLabel")
nl.Size = UDim2.new(1, -12, 0, 22)
nl.Position = UDim2.new(0, 6, 0, 3)
nl.BackgroundTransparency = 1
nl.Font = Enum.Font.Gotham
nl.TextSize = 11
nl.TextColor3 = Color3.fromRGB(125, 135, 160)
nl.TextXAlignment = Enum.TextXAlignment.Left
nl.Text = "No matching properties"
nl.Parent = propsFrame
y = 28
end
propsFrame.CanvasSize = UDim2.new(0, 0, 0, y + 6)
end
--// ACTIONS
local function actTeleport()
if not selected then return end
local hrp = getHRP()
if not hrp then return end
pcall(function()
if selected:IsA("BasePart") then
hrp.CFrame = selected.CFrame + Vector3.new(0, 4, 0)
elseif selected:IsA("Model") then
hrp.CFrame = selected:GetPivot() + Vector3.new(0, 4, 0)
end
end)
end
local function actClone()
if not selected then return end
pcall(function()
local c = selected:Clone()
c.Parent = selected.Parent
end)
dirty = true
render()
end
local function actDelete()
if not selected then return end
pcall(function() selected:Destroy() end)
selected = nil
clearESP()
dirty = true
render()
renderProps()
end
local function actPath()
if not selected then return end
local p = pathOf(selected)
local ok = copyText(p)
propsHeader.Text = ok and ("Copied: " .. p) or p
end
local function makeAction(text, x, cb, isDanger)
local b = Instance.new("TextButton")
b.Size = UDim2.new(0, 66, 0, 30)
b.Position = UDim2.new(0, x, 0, 420)
b.BackgroundColor3 = isDanger and Color3.fromRGB(130, 45, 55)
or Color3.fromRGB(42, 55, 95)
b.Font = Enum.Font.GothamSemibold
b.TextSize = 11
b.TextColor3 = Color3.new(1, 1, 1)
b.Text = text
b.Parent = main
Instance.new("UICorner", b).CornerRadius = UDim.new(0, 8)
b.MouseButton1Click:Connect(cb)
return b
end
makeAction("TP To", 10, actTeleport)
makeAction("Clone", 82, actClone)
makeAction("Delete", 154, actDelete, true)
makeAction("Path", 226, actPath)
--// EVENT WIRING + LIVE UPDATE
search:GetPropertyChangedSignal("Text"):Connect(function()
searchQuery = search.Text
dirty = true
render()
end)
propsFilter:GetPropertyChangedSignal("Text"):Connect(function()
propFilter = propsFilter.Text
renderProps()
end)
hook(game.DescendantAdded, function() dirty = true end)
hook(game.DescendantRemoving, function() dirty = true end)
task.spawn(function()
while alive() and screen.Parent do
if dirty and main.Visible then
dirty = false
pcall(render)
end
task.wait(1.2)
end
end)
--// INITIAL STATE: only game expanded
expanded[game] = true
render()
renderProps()
print("[MiniDex v2.1] Loaded - hold a node for actions")