Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How to force lose focus in a textbox?

Asked by
tantec 305 Moderation Voter
6 years ago

I want to know if there is a way to forcefully lose focus on a textbox just like how you would capturefocus, so for capturefocus there is

Textbox = script.Parent
Textbox:CaptureFocus() -- was wondering if there is a lose focus function like this

1 answer

Log in to vote
1
Answered by
Aimarekin 345 Moderation Voter
6 years ago

Yes, you can force the client to unfocus the textbox thanks to this void:

TextBox:ReleaseFocus()

Use it and your players will stop typing right away!

Ad

Answer this question