I am making a script where players can execute certain other scripts and retrieve the output from each.
--executable script example: print("Hi")
I want to make it so that when the player runs a script, a new GUI pops up and displays the output (like "Hi"). I already have the GUI set up, I just need to know how to retrieve the data from the output in order to put it into the Text of a TextLabel. Is there a function of some sort that allows you to access the string value of a certain output line?
Thanks!
I have not used this before, but I think the LogService MessageOut event will let you read output from any script.
What may be simpler, if, for example, you can completely control the script that you are watching for output, would be to redefine the print
function, with a simplistic example being
function print(...) workspace.Message.Text = table.join(unpack(...), " \t "); end
You need to use something like this http://wiki.roblox.com/index.php?title=RBX.lua.BindableFunction_(Object)
Locked by SanityMan, Perci1, Shawnyg, and BlueTaslem
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?