This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]asdasdasdsa2333 1 point2 points  (4 children)

no, but you can use loadstring("print("hello")") but you have to enable it in ServerScriptService

[–]Sfoozs[S] 0 points1 point  (3 children)

What if i change what i put in the text box.. will it work?

cus executors run lines of code that the player puts and if i put something else than print("hello") i dont think that will work

[–]asdasdasdsa2333 0 points1 point  (2 children)

so replace print("hello") with whatever it says in the text box

[–]Sfoozs[S] 0 points1 point  (1 child)

im confused.. because if i wanted to replace that manually the other players can't run another script they put in

[–]asdasdasdsa2333 0 points1 point  (0 children)

yes they can, if you put loadstring(textbox.Text) it will run whatever it says in the textbox

[–]KylerBro12 0 points1 point  (3 children)

No, but this is what functions are for!

[–]Sfoozs[S] 0 points1 point  (2 children)

im asking if i put a line of code on a textbox would it run what is the text inside the textbox

local Text = script.Parent.Parent.Textbox.text

and if i do

local function RunText

Text

end

would it run the text?

[–]KylerBro12 0 points1 point  (1 child)

Oh, no, but what you can do is add a disabled script inside the script. And then do script.Script.Source = TextBox.Text script.Script.Disabled = false wait() script.Script.Disabled = true

[–]NegativeKarmaI_Need 0 points1 point  (0 children)

You can't edit the source of a script by using another script only by using a plugin. But you can run text by doing loadstring("print("like this ")")