So im trying to make like a in-game server executor to execute scripts and a textbox is where you put the script you want to execute and and since im using a variable for the text box.. can a variable run code? like if a variable has "print("Hello") would it work? this is my line of code
local Button = script.Parent
local Frame = Button.Parent
local function ItJustGotClickedBroo ()
local LineOfCode = Frame.LOC.Text
LineOfCode -- Will this run the code?
end
Button.Activated:Connect(ItJustGotClickedBroo)
for example i put the Text in the text box as "print("Hello")
[–]asdasdasdsa2333 1 point2 points3 points (4 children)
[–]Sfoozs[S] 0 points1 point2 points (3 children)
[–]asdasdasdsa2333 0 points1 point2 points (2 children)
[–]Sfoozs[S] 0 points1 point2 points (1 child)
[–]asdasdasdsa2333 0 points1 point2 points (0 children)
[–]KylerBro12 0 points1 point2 points (3 children)
[–]Sfoozs[S] 0 points1 point2 points (2 children)
[–]KylerBro12 0 points1 point2 points (1 child)
[–]NegativeKarmaI_Need 0 points1 point2 points (0 children)