Clearing a textbox with "" doesn't fully clear it?

It’s probably inserting a carriage return "\r" or "\13" when you’re pressing the Enter.

Put a task.wait() before the CaptureFocus.

textbox.FocusLost:Connect(function(enterp: bool)
	if not enterp then
		return
	end

	task.wait()
	textbox:CaptureFocus()
	textbox.Text = ""
end)

Also I did some testing and both the PlaceholderText and the cursor will appear.
existing question

1 Like