Login Gui error

The only problem possible is that either your password UI is named ‘Code’ while your code UI is named ‘Password’.

Can you try this:

script.Parent.TextButton.MouseButton1Click:Connect(function()
	if script.Parent.Code.Text == "hi" then
		if script.Parent.Password.Text == "hi" then
			print("wow")
		end
	end
end)

If it works as expected, your UI naming is wrong.

2 Likes