Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Obtaining the Output text as a String?

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.

2 comments

0

there is no way.you could wrap everything in a pcall. why would you want this anyway?

0

or press shift+f5

1 answer

✓ Accepted answer

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.

3 comments

0

Well actually like that in every client print you can put player name and make function like that, smart right?

1

I had no idea this was possible, nor the existence of this Service. I learn something every day;)

0

After a little reading, perhaps :GetLogHistory() for the asker's sake?

This discussion is preserved as it was. New answers, comments, and votes are closed.