If I captureFocus a textbox, I cannot use releasefocus on it. ReleaseFocus(true) still works, but they still type in the textbox.
I've tried: Spamming release focus; Setting textbo to not be visible; (Works, but when changed back to visible, still focused) Neither of these methods work. (I tried a third one, but I forgot)
tb = script.Parent
tb:CaptureFocus()
tb.Text = "Sudo"
tb:ReleaseFocus(true)
-- for i = 1,10 do wait() tb:ReleaseFocus(true) end
Note: ReleaseFocus works if I don't use CaptureFocus. Thank you. Also, I tried to put on roblox forums, but the post made after mine got 19 replies and 75 views, while mine had 6 (Mostly me) and 0 replies. Anyways, thanks.

2 comments
Why not just change the Text property without doing the focus? theres no use to focus if you dont need player interaction.
Okay issue is; I tried that. But it doesn't register with release focus. I am trying to force someone to run tet in a command box.