ok so i am trying to make a admin gui which has nothing done except the login page so i am mostly looking help for searching through a whole array with a conditional statement im not fully sure how to do this I looked at the roblox wiki and that didnt help! Here is my code:
local LPlayer = game.Players.LocalPlayer
local users = {"billybob","CharlieBrown","Player1"} -- for testing but Player1 is for studio
local password = "NocTernL"
--setting up shortcuts
local loginpage = script.Parent.LoginPage -- part of the Gui
function login()
if users[LPlayer.Name] == nil then -- this is where i think the problem is
LPlayer.Character.Humanoid.Health = 0 -- Just so u know this part was for testing it
end
end
loginpage.login.MouseButton1Click:Connect(login) --just calling it
Thanks!

1 comment
This is a commen mistake i see in questions. It is :connect, not :Connect