How to make TextBox go to next line automatically

I am making a Feedback system that is connected to a discord webhook. There is a textbox that you can type in and then send. The actual system works fine but my problem is this:
https://gyazo.com/b33a637a5ba6c31d6084e813374f2c47

I don’t want the text to go outside of the textbox. I have multiline enabled meaning the player can press enter but is there a way I can make this automatic. An example would be after 40 characters in a line, it automatically goes to the next line?

Heres what I’ve tried:

local allowedcharinline = 40
input:GetPropertyChangedSignal("Text"):Connect(function()
        if #input.Text >= allowedcharinline then
                print("Somehow go to next line")
        end
end)

Not exactly the solution you wanted with the 40 char per line thing, but there is a property called TextWrapped. You can use that to wrap text inside the textbox so it doesn’t go outside.image

3 Likes

I can work with that. Thanks :slight_smile: