How to check if a text box tex is a specific text

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? I’m trying to make a code system

  2. What is the issue? text box doesn’t detect code when typed.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

GenBtn.MouseButton1Click:Connect(function()---button clicked
	if Input == code then ---- input is the text in the box
		GenAd.Visible = false

Input has to update. It would be better if you did something like

TextBox.Text == code

Im checking if the code was put into the box

What @AborayStudios is saying is that you need to update the variable Input when the button is clicked.

How Ive tired everything I know .