Moving object issue

Hi! I’m trying to make script, that if two “terminals” will be active, doors will open. Everything works, but door moving script isn’t working!

local test = 81


while test == 81 do
	print(test)
	wait()
	local A1terminal = workspace.Wagon1A.Terminal.TerminalKeyboard.ProximityPrompt.Activated.Value
	local A2terminal = workspace.Wagon2A.Terminal.TerminalKeyboard.ProximityPrompt.Activated.Value
	local Suma = A1terminal + A2terminal
		if Suma == 2 then
			test = 0
		end
end

while test < 80 do
	print(test)
	local doors = script.Parent
	doors.Position += Vector3.new(0,0.1,0)
	test += 1
	wait(0.01)
end

I saw the tutorial how to move objects, but it didn’t work. Pls help!

Deleted because I was wrong in my assumption about what is going wrong. Apologies.

What type of Value are A1terminal and A2terminal? Activated would normally correlate to them being bools, but if you’re adding them and comparing them, are they numbers then?

Also are you getting any errors?

I would assume A1terminal and A2terminal are booleans, idk if you can add boolean values in lua, but in many programming languages, true = 1 and false = 0, so true+true = 2

first of all, why do you keep setting “doors” to script.parent lol, take that outside of the loop unless you keep changing script.Parent

also, does the doors move at all?