Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

textbox that saves text not working?

Hi,

I am trying to do something with a textbox gui that may not even be possible.

So bassically i am trying to make a real time text saver that will save any amount of text entered into a textbox.

local savedText --Variable that will save text

script.Parent.Focused:Connect(function() --function that will detect player using textbox script.Parent.Text = savedText print("focused") while true do wait(0.1) --real time process that will save any entered text script.Parent.Text = savedText
end end)

script.Parent.FocusLost:Connect(function() print("focus lost") script.Parent.Text = savedText --save the text when player is done using textbox end)

Any help will be appreciated. Thanks!

1 answer

✓ Accepted answer

I believe you're trying to achieve a result for when you click on a TextBox the content isn't removed. This is something that can be possible without the aid of a Script, simply uncheck the property ClearTextOnFocus.

2 comments

0

Remember to accept this answer if it helps

0

i am dumb. thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.