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

How to not make the text disappears when you click on a TextBox?

Asked by 5 years ago

I've seen people doing this in many games, but I don't know how to make my own

0
textbox? HappyTimIsHim 652 — 5y
0
yes? Konethorix 197 — 5y

1 answer

Log in to vote
1
Answered by
Astralyst 389 Moderation Voter
5 years ago
Edited 5 years ago

Under the textbox properties; there is a thing called ClearTextOnFocus https://developer.roblox.com/api-reference/property/TextBox/ClearTextOnFocus

What it does is; if it's set to true; it will erase every text when you click on the textbox.

All you need to do is set it to false.

0
it's a bool value, so you just need to uncheck it. Astralyst 389 — 5y
0
Oh thanks, I didn't know about that property yet Konethorix 197 — 5y
Ad

Answer this question