Im trying to make a developer console “channel” reader that displays recent outputs from the developer console… but i keep getting an error that says the text
variable is an instance. Does anyone know what to do here?!?!?!?!
local logService = game:GetService("LogService")
local message = nil
local color,weight,text = Color3.fromRGB(255, 255, 255),Enum.FontWeight.Regular,message
logService.MessageOut:connect(function(message)
if message.MessageType == Enum.MessageType.MessageOutput then
color,weight,text = Color3.fromRGB(185, 0, 255),Enum.FontWeight.Bold,message
elseif message.MessageType == Enum.MessageType.MessageInfo then
color,weight,text = Color3.fromRGB(35, 255, 35),Enum.FontWeight.Regular,message
elseif message.MessageType == Enum.MessageType.MessageWarning then
color,weight,text = Color3.fromRGB(255, 255, 55),Enum.FontWeight.Regular,message
elseif message.MessageType == Enum.MessageType.MessageError then
color,weight,text = Color3.fromRGB(255, 35, 35),Enum.FontWeight.Bold,message
end
local t = tick()
local timestamp = ("%02i:%02i:%02i"):format(t/60^2, t/60%60, t%60)
local textlabel = script.TextLabel:Clone()
textlabel.Parent = script.Parent.mainF.subF
textlabel.TextColor3,textlabel.FontFace.Weight,textlabel.Text = color,weight,timestamp.." "..text
end)