Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Obtaining the Output text as a String?

Asked by 3 years ago

I'd like to know if there's some way to get the Output from a client including all print calls and code error messages. In that way, I could send the text via RemoteEvent into the server to check if everything is alright.

Using a modified print function that uses RemoteEvent wouldn't work, because if the script broke, It would stop executing and the message wouldn't be sent.

0
there is no way.you could wrap everything in a pcall. why would you want this anyway? Luka_Gaming07 534 — 3y
0
or press shift+f5 amaizing_01 0 — 3y

1 answer

Log in to vote
3
Answered by
imKirda 4491 Moderation Voter Community Moderator
3 years ago
Edited 3 years ago

No idea if it is possible for one client tho but if you want to read the output from server then this script may work.

local output = game:GetService("LogService") -- server script (workspace)
output.MessageOut:Connect(function(message)
    print(message)
end)

Again it prints all the output from all clients i think tho.

0
Well actually like that in every client print you can put player name and make function like that, smart right? imKirda 4491 — 3y
1
I had no idea this was possible, nor the existence of this Service. I learn something every day;) Ziffixture 6913 — 3y
0
After a little reading, perhaps :GetLogHistory() for the asker's sake? Ziffixture 6913 — 3y
Ad

Answer this question