Universal Script 📌
1.5k Views
1.0k Executions

Copy button

Universal Script 📌
AquaHub
AquaHub10K executions
1 month ago

Reviewed by QueueSherlockPaid revieweron How review works

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

Just adds a button to copy text in the console to the delta menu.

View Raw
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


Comments

1
Log in to join the conversation. Login
zofie's profile picture
zofie1 month ago

this kinda pointless u can copy and paste

1

More universal scripts

See all
Universal Script 📌
57
2
Approved 29 minutes ago
Script hub
62
4
Approved 56 minutes ago
Script hub
78
3
Bumped 1 hour ago
Key System

Script hub

Plak Upd

Script hub
53
3
Approved 2 hours ago

Script hub

Levian Hub

Universal Script 📌
39
2
Approved 2 hours ago
Universal Script 📌
32.7k
43.8k
Bumped 9 hours ago
Universal Script 📌
16.5k
14.8k
Bumped 10 hours ago