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!