How do i add text to what a player is currently typing in a textbox

I the script to make the text button add what it is to what the user is typeing so for exaple user has typed “pri” and then theay click print (i have the suggeton part working) and when theay click print it just auto fills the text of the textbutton whare the user is typing

current script does this but after player types anything else in it it gets deleted

so that about it just a textbutton that ads the text of the button to what the user is curently typing and make it so that player can type “print pri” hit print and will ingore the first print and just replace the second un finished one

You could try TextBox.ClearTextOnFocus = false

Another option is:

local text = TextBox.Text..suggestion
TextBox:CaptureFocus()
TextBox.Text=text

However your cursor will be at the start of the text and not at the end.

il try thanks!

liminotay

1 Like

i alrety have the suggetion mecnusm lol

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.