I need the text in the Textbox to be automatically Highlighted/Selected when Focused
Not highlighted text
Highlighted text
I need the text in the Textbox to be automatically Highlighted/Selected when Focused
Not highlighted text
Highlighted text
TextBox.Focused:Connect(function()
--do code
end)
How does this solve my problem?
So you want all text to be highlighted when it was focused?
yes i want all the text to be highlighted when focused
local TextBox = script.Parent
TextBox:CaptureFocus()
I apologise for the 1st response, I thought you were just trying to detect a “Focused” event.
CaptureFocus() is for setting the focus. I need the text in the TextBox to be Highlighted when focused
I was going to add to that script when I found some way of achieving what you’re trying to do but after extensive searching I don’t think that it’s possible. I was able to highlight text by double clicking but not after a single click.