Universal Script 📌
2.6k Views
28 Executions

Color Print

Universal Script 📌
Infi
Infi10 followers
1 year ago
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 prints in a custom color of your choice in RGB color layouts REQUIRES AN EXECUTOR WITH getgenv() AND cprint FUNCTIONS

View Raw
getgenv().cprint = function(text, color)
    local printId = "##" .. tostring(math.random(1, 1e9))
    print(text .. " " .. printId)

    task.spawn(function()
        local DevConsole = game:GetService("CoreGui").DevConsoleMaster.DevConsoleWindow.DevConsoleUI
        local ClientLog = DevConsole.MainView.ClientLog

        for _, child in ipairs(ClientLog:GetChildren()) do
            local msg = child:FindFirstChild("msg")
            if msg and msg.Text:find(printId) then
                msg.TextColor3 = color
                msg.Text = msg.Text:gsub(printId, "")
                return
            end
        end

        local connection
        connection = ClientLog.ChildAdded:Connect(function(child)
            local msg = child:FindFirstChild("msg")
            if msg and msg.Text:find(printId) then
                msg.TextColor3 = color
                msg.Text = msg.Text:gsub(printId, "")
                connection:Disconnect()
            end
        end)
    end)
end

-- add your prints here using cprint, i will probably add some here for you to use idk

--[[
cprint("Successfully loaded!", Color3.fromRGB(0, 255, 0))
cprint("Warning: Low memory", Color3.fromRGB(255, 165, 0))
cprint("Error: Script failed", Color3.fromRGB(255, 0, 0))
]]--


Comments

6
Log in to join the conversation. Login
Infi's profile picture
InfiUploader1 year ago

i dont steal scripts.

1
purplesstrat's profile picture
purplesstrat1 year ago

is it stolen? i've seen the same script.

1
Infi's profile picture
InfiUploader1 year ago

Lyric, https://discord.gg/HfcmMZN9jp

1
usersshaha's profile picture
usersshaha1 year ago

What executor are you using?

1
Infi's profile picture
InfiUploader1 year ago

thanks @rscriptswarlord69

1
unskidded's profile picture
unskidded1 year ago

cool

1

More universal scripts

See all
Script hub
85
7
Approved 2 hours ago
Key System

Script hub

Plutonium

Script hub
112
14
4 hours ago