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

Help with passwords and guis?

Could someone direct me to where I can find out how to make a box that allows you to submit a password through gui and then if it's correct something happens.

1 comment

0

Like a user account password? xD

1 answer

✓ Accepted answer

put this in a text box:

script.Parent.FocusLost:connect(function() -- when the textbox is clicked away from, or pressed enter
	if script.Parent.Text == "passwordHere" then -- checks to see if the password is correct
		print'ta-da' -- put code here
	end
end)

this has not been tested, and may have some basic syntax errors.

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