Hi my script is not doing what it is supposed to do. its a Basic Gui Where You Enter In A Code And A Door Opens If I Type The Same Number. Described And With A Different Script It Prints Its Incorrect Though It Is The Same if there are any fixes. that you think i could do please answer this

local hitbox = workspace.CodeDoor.Hitbox
local Code = workspace.CodeDoor.Code

hitbox.Touched:Connect(function()
	script.Parent.Parent.Frame.Visible = true
	script.Parent.Sumbit.MouseButton1Click:Connect(function()
		if script.Parent.TextBox.Text == Code.Value then
			print("Approved")
			script.Parent.Approved.BackgroundColor3 = Color3.new(85, 255, 0)-- Green
			workspace.CodeDoor.Open.Disabled = false
			wait(5)
			workspace.CodeDoor.Open.Disabled = true
			--re
			script.Parent.Visible = false
			script.Parent.Approved.BackgroundColor3 = Color3.new(255, 255, 0)-- Yellow
		else
			print("Incorrect")
			script.Parent.Approved.BackgroundColor3 = Color3.new(255, 0, 0)-- Red
			script.Parent.Visible = false
		end
	end)
end)