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

How do I use text boxes to create a login page with passwords and usernames?

Asked by 4 years ago

Im trying to create a login page but I can access the text from a text box, which means no one can login

0
What? Be more specific iiConstable_Subwayx 130 — 4y
0
Yeah uh... you need to be more specfic... harstud 218 — 4y

1 answer

Log in to vote
0
Answered by
harstud 218 Moderation Voter
4 years ago
Edited 4 years ago

lol what i'm going to amuse you just want to create a log in

-- created by Ha_rriz, for deadwalker601. scriptinghelpers.org

local UserNameBox = *EnterGuiName*.UserNameBox
local PassWordBox = *EnterGuiName*.PassWordBox
local Button = *EnterGuiName*.Button

Button.MouseButton1Click:Connect(function()
    if UserNameBox.Text == *enterusernamehere* then
        if PassWordBox.Text == *enterpasswordhere* then
            -- now, this is where i'm going to leave you off to do what you need to do when the password is correct. enter some code here.
        else
            PassWordBox.Text = "*Enter your wrong message here!*"
            wait(2)
            PassWordBox.Text = ""
        end
    else
        UserNameBox.Text = "*Enter your wrong message here!*"
        wait(2)
        UserNameBox.Text = ""
    end
end)
0
it didnt work deadwalker601 110 — 4y
0
this isn't a request site, tell us your error and we can help fix it and educate you at the same time Robowon1 323 — 4y
Ad

Answer this question