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

LogService.MessageOut how to find origin?

Hi guys,

In my game I made a script witch uses LogService.MessageOut event, and send me info of any error that it encounters. But after looking what it found i noticed this doesn't show what script cause errors. And i am asking is there a way to find script witch activated MessageOut event.

1 answer

No, there is no way of achieving that. Are you trying to only send errors or everything from the output? I see, only errors so you can try Script Conext and it's event Error which fires when any script (On the same side) errors. It then returns 2 arguments, Error (Arg 1) and Origin info (What you need, Arg 2).

local function OnError(Error: string, Debug: string)
	print(Error, Debug)
end

This is example of function that i use, otherwise, no there is no way.

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