Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I detect multiline in textbox?

Asked by 3 years ago

So I want to let the players type something on a textbox and the textbox has multiline

This is what i tried on multiline:

if script.Parent.Text == [[

new Block1(settings-Red,Transparent)
Block1.CreationDetected(add+settings)

]] then

local Block = Instance.new("Part",workspace)
Block.Name = "Block1"
Block.BrickColor = BrickColor.new("Really red")
Block.Transparency = 1
script.Parent.Text = "Created a red transparent block."

Pretty much the text in the [[]] is what they need to write multiline and the action after then will happeb. i cant make it work help?

Answer this question