
1.5k Views
1.0k Executions
Copy button
Universal Script 📌
1 month ago
Reviewed by QueueSherlockPaid revieweron How review works
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Just adds a button to copy text in the console to the delta menu.
local cg = game:GetService("CoreGui")
local ts = game:GetService("TweenService")
local logs = game:GetService("LogService")
local setclip = setclipboard or toclipboard or (Clipboard and Clipboard.set)
local function getLogs(console)
local lines = {}
local scroller = console:FindFirstChildWhichIsA("ScrollingFrame", true)
if scroller then
for _, v in ipairs(scroller:GetDescendants()) do
if (v:IsA("TextLabel") or v:IsA("TextBox")) and v.Text ~= "" then
table.insert(lines, {
order = v.LayoutOrder,
y = v.AbsolutePosition.Y,
text = v.Text
})
end
end
end
if #lines > 0 then
table.sort(lines, function(a, b)
if a.order ~= 0 and b.order ~= 0 and a.order ~= b.order then
return a.order < b.order
end
return a.y < b.y
end)
local res = {}
for i = 1, #lines do
res[i] = lines[i].text
end
return table.concat(res, "\n")
end
local history = logs:GetLogHistory()
local raw = {}
for i, item in ipairs(history) do
raw[i] = item.message








this kinda pointless u can copy and paste