Hello. I do not know anything about scripts, so please help me. How can I write that if I enter the wrong password, another gui from (animation) UDim2.new shows and hides after a few seconds? This is my script:
local TextBox = script.Parent
TextBox.FocusLost:Connect(function(enterPressed, inputThatCausedFocusLost)
if enterPressed then
if script.Parent.Parent.TextBox.Text == "ok" then
script.Parent.Parent.Parent.Login.Visible = true
script.Parent.Parent.Parent.Wrongpasswordtryagain.Visible = true
wait(5)
script.Parent.Parent.Parent.Wrongpasswordtryagain.Visible = false
end
end
end)
And should i gui animation put here?

2 comments
Wait, you do now know anything about scripts? Anything at all? I suggest watching some tutorials.
I know a little bit, but not much, so I am asking for help.