ADVERTISEMENTREMOVE ADS

Colored Console Print

Universal script
6 months ago
Script preview thumbnail
Script Preview

Description

this script makes your console messages look cool with colors and icons. it finds your messages in the dev console and changes how they look. you need these functions in your executor to make the script work:

  • getgenv()

  • task.spawn()

any issues please join to the discord server or dm to me : veil0x14 on discord

this script was made by l0stveil (veil0x14) aka mxxer

ADVERTISEMENTREMOVE ADS
84 Lines • 3.21 KiB
Verified
Raw
getgenv().cprint=function()
local message="the script is working!" -- text to print
local textColor,colorText=Color3.fromRGB(0,255,0),true -- text color and if enabled
local iconColor,colorIcon=Color3.fromRGB(0,0,0),false -- icon color and if enabled
local iconType,showIcon="info",true -- icon type and if shown
local uniqueTag=""..tostring(math.random(1,1e9))
print(message..""..uniqueTag)
local iconPaths={
["info"]="rbxasset://textures/DevConsole/Info.png",
["warning"]="rbxasset://textures/DevConsole/Warning.png",
["error"]="rbxasset://textures/DevConsole/Error.png",
["success"]="rbxasset://textures/Tutorials/Tick.png",
} -- you can add more icon paths here
local selectedIcon=iconPaths[iconType:lower()] or iconType
if not selectedIcon:find("rbxasset://") then
selectedIcon="rbxasset://"..selectedIcon
end
if not selectedIcon:find("%.png$") and not selectedIcon:find("%.jpg$") and not selectedIcon:find("%.jpeg$") then
selectedIcon=selectedIcon..".png" -- adds .png extension if missing
end
-- do not change anything below this line
task.spawn(function()
local found = false
while not found do
pcall(function()
local coreGui=game:GetService("CoreGui")
if not coreGui:FindFirstChild("DevConsoleMaster") then return end
local devConsole=coreGui.DevConsoleMaster.DevConsoleWindow.DevConsoleUI
if not devConsole:FindFirstChild("MainView") then return end
local clientLog=devConsole.MainView.ClientLog
local latestMatch=nil
local latestIndex=0
for _,entry in pairs(clientLog:GetChildren()) do
local msgLabel=entry:FindFirstChild("msg")
if msgLabel and msgLabel.Text:find(uniqueTag) then
local index=tonumber(entry.Name) or 0
if index>latestIndex then
latestIndex=index
latestMatch=entry
end
end
end
if latestMatch then
local msgLabel=latestMatch:FindFirstChild("msg")
if msgLabel then
if colorText then
msgLabel.TextColor3=textColor
end
msgLabel.Text=msgLabel.Text:gsub(uniqueTag,"")
end
if showIcon and latestMatch:FindFirstChild("image") then
latestMatch.image.Image=selectedIcon
if colorIcon then
latestMatch.image.ImageColor3=iconColor
end
end
found = true
end
end)
if not found then
task.wait(0.01)
end
end
end)
end
cprint()
ADVERTISEMENTREMOVE ADS

Comments

16 comments
to add a comment
xy

pretty much all free executors and some paid dont support this due to getgenv sadly

0
0
TS
@TSQ
(edited)

@xyz getgenv - the simplest function, only shit exploits cant support it

0
0
ma

@TSQ , thats why i didnt add solara and xeno

0
0
xy

@TSQ yes, so most free ones, velocity, solara, xeno, etc

0
0
TS

@xyz solara and xeno dont support sUNC functions lol

0
0
ma

@xyz , these were all the executors in the website.

0
0
xy

@L0stVeil wydm? im just saying some executors dont have getgenv. cool script tho

0
0
ma

@xyz , i thought you were talking about how many executors i added to "tested with" and thank you for the feedback.

0
0
TS

cool script

0
0
ma

@TSQ , thanks for the feedback.

0
0
ph

getgenv and the task library are literlaly luau globals and even normal roblox localscripts can run it, it does not require and executor

0
0
ph

@photon _G is the luau global i suggest you to put this at the top of your script or use _G instead of getgenv: getgenv=getgenv or function() return _G end

0
0
ma

@photon , respectfully, getgenv() is exploit-only. G is standard luau but resets between executions, while getgenv() persists. try running "print(getgenv)" in studio - it'll error. my script specifically needs the persistence that only exploits provide. task library exists in both, but the environments are fundamentally different so getgenv() is better and less detections in games.

0
0
ph

@L0stVeil Actually, thats cap. also, you dont need to use getgenv OR _G, you can just put: cprint=function() <...> as this will put it as a global variable meaning it can be used like getgenv but without having to call getgenv

0
0
ph

@photon (or you can even use getfenv its the same thing)

0
0
ma

@photon okay , i am not going to use _G or getfenv lets just stop communicating thanks.

0
0
ADVERTISEMENTREMOVE ADS