am tryin to make a login screen so when you input wrong password it kicks you off of the game. what i have done so far in localscript.
local code = script.Parent.Parent.Code
local textbox = script.Parent.Parent.password
script.Parent.MouseButton1Click:Connect(function()
if textbox.Text == code.Value then
script.Parent.Text = 'Welcome to [UnnAmeD]'
wait(2)
script.Parent.Text = 'have a nice day [remember to read rules]'
wait(4)
script.Parent.Parent.Visible = false
else
script.Parent.Text = 'Incorrect code'
wait(2)
script.Parent.Text = 'please leave'
end
end)
[image]

3 comments
is it possible to delete the textbox(password) in that same "incorrect password" thingy?
yes just add: textbox.Active = false and textbox.Visible = false or textbox:Destroy() your choice
thx