Hello, I’m trying to create an in-experience script editor without loadstring, and I don’t know how I can do a print() function.
When a player writes print("anything") in a TextBox, the word anything appears in a TextLabel, not in the Output.
Hello, I’m trying to create an in-experience script editor without loadstring, and I don’t know how I can do a print() function.
When a player writes print("anything") in a TextBox, the word anything appears in a TextLabel, not in the Output.
Can you please share the code?
Aside from that, you could try to assign the input of what the player types as a local variable. Then pass that variable to the print function.
I don’t have any code with that. And what I want to know is how to get the text of the variable.
You can use something like this
local TextBox=script.TextBox
local TextLabel=script.TextLabel
local _split=string.split(TextBox.Text,"(")
_split=string.split(_split[2],")")
local FinalText=string.sub(_split[1],2,#_split[1]-1)
TextLabel.Text=FinalText
-- Final Text is the Text you Need to set the Text Label's Text To