Hello i’m currently working on a admin panel and i want to do when the login is wrong it says
‘Login Wong’
elseifnot LoginPass.Text == 'Sam0601' then
sublog.Text = 'Checking.'
wait(0.6)
sublog.Text = 'Checking..'
wait(0.6)
sublog.Text = 'Checking...'
wait(0.6)
sublog.Text = 'Checking.'
wait(0.6)
sublog.Text = 'Checking..'
wait(0.6)
sublog.Text = 'Checking...'
wait(0.6)
sublog.Text = 'Checking.'
wait(0.6)
sublog.Text = 'Checking..'
wait(0.6)
sublog.Text = 'Checking...'
wait(2)
sublog.Text = 'Login Wrong.'
wait(1)
sublog.Text = 'Submit'
wait(0.5)
and it wont work why ?
1 Like
local sublog = Gui.Login.Submitlog
local LoginPass = Gui.Login.LoginPass
sublog.MouseButton1Click:Connect(function()
if LoginPass.Text == ‘Sam0601’ then
sublog.Text = ‘Checking.’
wait(0.6)
sublog.Text = ‘Checking…’
wait(0.6)
sublog.Text = ‘Checking…’
wait(0.6)
sublog.Text = ‘Checking.’
wait(0.6)
sublog.Text = ‘Checking…’
wait(0.6)
sublog.Text = ‘Checking…’
wait(0.6)
sublog.Text = ‘Checking.’
wait(0.6)
sublog.Text = ‘Checking…’
wait(0.6)
sublog.Text = ‘Checking…’
wait(2)
sublog.Text = ‘Welcome Sam.’
wait(1)
sublog.Text = ‘Submit’
wait(0.5)
Gui:TweenPosition(
UDim2.new(0.272, 0,-1.171, 0),
“Out”,
“Quad”,
.5,
false
)
elseif LoginPass.Text ~= ‘Sam0601’ then
sublog.Text = 'Checking.'
wait(0.6)
sublog.Text = 'Checking..'
wait(0.6)
sublog.Text = 'Checking...'
wait(0.6)
sublog.Text = 'Checking.'
wait(0.6)
sublog.Text = 'Checking..'
wait(0.6)
sublog.Text = 'Checking...'
wait(0.6)
sublog.Text = 'Checking.'
wait(0.6)
sublog.Text = 'Checking..'
wait(0.6)
sublog.Text = 'Checking...'
wait(2)
sublog.Text = 'Login Wrong.'
wait(1)
sublog.Text = 'Submit'
wait(0.5)
end
end)
Hello there, could you please be more specific with what you want? I am having trouble with what is it you want to achieve. That would help
So when the code is not Sam0601 then it say code wrong but how …
i dont understand you…
are you giving a statement or is it a question?
You would need to use, ~=.
This script should work 
elseif LoginPass.Text ~= 'Sam0601' then
sublog.Text = 'Checking.'
wait(0.6)
sublog.Text = 'Checking..'
wait(0.6)
sublog.Text = 'Checking...'
wait(0.6)
sublog.Text = 'Checking.'
wait(0.6)
sublog.Text = 'Checking..'
wait(0.6)
sublog.Text = 'Checking...'
wait(0.6)
sublog.Text = 'Checking.'
wait(0.6)
sublog.Text = 'Checking..'
wait(0.6)
sublog.Text = 'Checking...'
wait(2)
sublog.Text = 'Login Wrong.'
wait(1)
sublog.Text = 'Submit'
wait(0.5)
Here is more about if statements.
https://education.roblox.com/en-us/resources/if-then-statements
1 Like
yes it’s a satement and sry for my bad english i’m french …
==
means same with the thing and ~=
not same with the thing
okay thank you for the help guys !
1 Like