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.
All that should be working. You don't need to set the value for ReleaseFocus
local tb = script.Parent; tb:CaptureFocus(); tb.Text = "Sudo"; tb:ReleaseFocus();
This should work. If it does I'm glad I could help and would really appreciate it if you could accept this as the answer. If you find this confusing feel free to ask any questions you have.