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.
put this in a text box:
1 | script.Parent.FocusLost:connect( function () -- when the textbox is clicked away from, or pressed enter |
2 | if script.Parent.Text = = "passwordHere" then -- checks to see if the password is correct |
3 | print 'ta-da' -- put code here |
4 | end |
5 | end ) |
this has not been tested, and may have some basic syntax errors.