I have written out the code but only the first code in the table works.
local code = {"2004", "6331"} --Only 2004 works as a code
local text = script.Parent.Parent.CodeBar
local val = script.Parent
local plr = script.Parent.Parent.Parent.Parent.Parent
print("ATM Loaded")
script.Parent.MouseButton1Click:connect(function()
for i,v in pairs(code) do
if text.Text == v then
print(plr.Name.." has entered the bank")
script.Parent.Parent.Parent.PinCode.Visible = false
script.Parent.Parent.Parent.Page1.Visible = true
else
text.Text = "Incorrect Pin!"
wait(2)
text.Text = ""
end
end
end)

4 comments
local code = {"2004", "6331",} --> to --> local code = {"2004", "6331"}
Oh i'm an idiot, thanks
Actually no, it doesn't work ;-;
Are there any error messages?