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

Help with passwords and guis?

Asked by 8 years ago

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.

0
Like a user account password? xD Codebot 85 — 8y

1 answer

Log in to vote
6
Answered by
theCJarmy7 1293 Moderation Voter
8 years ago

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.

Ad

Answer this question