Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make a script that can tell if there is Text in a textbox?

Here is my code:

game.CoreGui.LsZmKQp.Frame.TextButton.MouseButton1Click:Connect(function()

if TextBox.Text then

TextButton.Text = ("Check Developer Console with F9")

wait(2)

TextButton.Text = ( "Encrypt")

print(TextBox.Text) else

print("You need to type something in the Textbox!")

end

end)

I need to know how to make a Script that can tell if there is text in a textbox

1 comment

0

if not TextBox.Text == "" then

1 answer

If a textbox has no text, it's text would be considered "", otherwise a string value that contains nothing, so you could easily do this: if not TextBox == "" then if not is pretty much the same as saying if TextBox ~= "" then

This discussion is preserved as it was. New answers, comments, and votes are closed.