Universal Script 📌
80.6k Views
203 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.

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
Universal Script 📌
9.8k
60.7k
Bumped 13 minutes ago
Key System
Universal Script 📌
3.9k
10.4k
Bumped 14 minutes ago
Script hub
272.5k
884.6k
Bumped 33 minutes ago
Key System

Script hub

#16 this week

Verified script badgeAxon Hub 60+ Games & 800+ Features

Script hub
30.3k
92.0k
Bumped 5 hours ago
Key System

Script hub

#2 this week

Verified script badgeArcane Hub | 125+ Games & 4000+ Features