I'm trying to make something where you login with a password and it doesn't do anything when I try it, it just shows the GUI and nothing works.
It comes up when you first join the game as a StarterGUI and it's just a Text Box (For the Password), A Text Button (To Submit) & an Image for a logo.
Also, LoginAPI is a webhook to Discord I put earlier on in the script, I didn't add that in as that's not the problem.
Here's the Script:
local Ps = script.Parent.Login.Passwords local M = script.Parent
script.Parent.Login.MouseButton1Click(function(Cl)
if script.Parent.Parent.Passbox.Text == Ps.Strange.Text then
for i = 0,1,.1 do
M.Labelz.TextTransparency = i
M.PassBox.TextTransparency = i
M.Login.TextTransparency = i
wait()
end
for i = 1,0,-.1 do
M.Welcome.Text = "Welcome, Strange!"
wait()
end
for i = 0,1,.1 do
wait(3)
M.Welcome.TextTransparency = i
M.ImageLabel.ImageTransparency = i
M.BackgroundTransparency = i
wait()
end
local Name = "Login Bot"
local Msg = Cl.Parent.Name.." Logged In With: "..script.Parent.Parent.Passbox.Text
LoginAPI(Name,Msg)
script.Parent.Parent:Destroy()
else
M.PassBox.Text = "Wrong Password, Please Try Again!"
wait(2)
M.PassBox.Text = "Password Here!"
local Name = "Login Bot"
local Msg = Cl.Parent.Name.." Tried To Log In With: "..script.Parent.Parent.Passbox.Text
LoginAPI(Name,Msg)
end
end

2 comments
The code isn't formatted correctly, but you need a closing parenthesis ')' on the last line.
This was just part of a bigger code block. Formatting isn't a problem, I just checked.