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!

1 comment
I know kohl's admin has this, but I have no idea how to do it.