Universal Script 📌
80.7k Views
225 Executions

Custom output color

Universal Script 📌
Verified
Verified
Verified Badge
Verified User
10 followers
2 years 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 an easy "library" to use, to change the output color of your print how to use: Insert your own colors in Modules.Colors, you can do this by e.g using a color picker for it (its in rgb) then do: Output:print("Color","Text") Optionial: Output:print("Color","Text",size) How does it work? Every time you use print or any other method that outputs text (excluding rconsoleprint, of course), it adds a TextLabel to the Developer Console. However, you now have the option to enable RichText, which allows you to incorporate HTML code into your elements. This feature enables you to modify text attributes such as font color, size, and more.

Updates

  1. Script edited: Update script

  2. Script edited: Update script

  3. Script edited: Update script

  4. Script edited: Create script

View Raw
local RunService = game:GetService("RunService")
local CoreGui    = game:GetService("CoreGui")

local Output     = {}
Output.__index   = Output

function Output:ChangeColor(): RBXScriptConnection
    local conn = RunService.Heartbeat:Connect(function()
        local DevConsoleMaster = CoreGui:FindFirstChild("DevConsoleMaster")
        if not DevConsoleMaster then return end 

        for _, text in DevConsoleMaster:GetDescendants() do 
            if text:IsA("TextLabel") then 
                text.RichText = true 
            end 
        end 
    end)

    return conn 
end 

function Output:print(color: string, text: string, size: number | nil)
    local _text = '<font color="rgb(' .. color .. ')"'
    if size then 
        _text = _text .. ' size="' .. tostring(size) .. '"'
    end 

    _text = _text .. '>' ..text .. '</font>'
    print(_text)
end 

local connection = Output:ChangeColor()
Output:print("0,255,0", "Lol")
Output:print("0,255,0", "Lol with size 20", 20)


Comments

2
Log in to join the conversation. Login
prenstoppah's profile picture
prenstoppah2 years ago(edited)

101% unc confirmed

1
nokey's profile picture
nokey2 years ago(edited)

nice

1

More universal scripts

See all
Script hub
50.6k
320.1k
Bumped 28 minutes ago

Script hub

Nameless Admin

Script hub
176.7k
1.6M
Bumped 2 hours ago
Key System
Script hub
46.6k
11.5k
Bumped 4 hours ago
Key System
Paid
Script hub
2.5M
798.8k
Bumped 5 hours ago
Key System

Script hub

#9 today

Verified script badgeLumin Hub | #1 | Insta Steal