I’m looking for a way to get the Output content with a Script, It would be some kind of Output.Content or Output.Text but in didn’t find any way to do get the Output…
If you don't understand
When this Script is lauch
print("Hello world!")
It will show Hello world! in the Output, I’m looking for a way to get the Hello world! in a Script (to store this in a string variable)
local function GetOutput()
return Output.Content --This doesn't work but it would be similar...
end
Check if the type of the message is a “Output” or not.
Store it in a table.
local allOutputs = {}
game:GetService("LogService").MessageOut:Connect(function(Message, Type)
if Type == Enum.MessageType.MessageOutput then
allOutputs[#allOutputs + 1] = Message
end
end)