I'm not sure, But I just looked at the top of your code and saw that you set the cursorpos to a new line everytime.
write("Hello World")
write("!")
--[[
Output:
Hello World!
--]]
print("Hello World")
print("!")
--[[
Output:
Hello World
!
--]]
Write keeps writing the text on the same line while print prints on another line each time ;)/>
And you don't need parantheses around every string
I kinda meant this part
if input == ( "Hello World!" ) then
print("Hello World!")
end
Can be
if input == "Hello World!" then
print("Hello World!")
end
You can even do this
print"Hello World"
Even though I suggest you use parantheses when printing/writing
It only works with strings and only when you're passing a single argument as mentioned by TheOriginalBIT above.
And I saw when you are trying to call the function 'passwordInput' in the function 'usernameInput' you are trying call it before it's declared.
Undeclared
hello() -- Undeclared so you can't call it
local function hello()
print("Hello World!")
end
Declared
local function hello()
print("Hello World!")
end
hello() -- Now you can call it since it's declared above
- Hellkid98
EDIT: Thanks for pointing that out TOBIT :)/>