I have a grouped everything together. I also referenced this video: https://www.youtube.com/watch?v=ZnBz_kbSnm8&index=45&list=WL&t=1115s
-Automatic Door, Script, -Door1, Frame, Frame, Frame, Frame, Glass, -Door2, Frame, Frame, Frame, Frame, Glass, Frame (x11), Glass (x3), Sensor,
Script:
door1 = script.Parent.Door1
door2 = script.Parent.Door2
doorClosed = true
script.Parent.Sensor.Touched:connect(function(hit)
local h = hit.Parent:FindFirstChild("Humanoid")
if h then
if doorClosed then
doorClosed = false
for i = 1,30.3 do
door1.CFrame = CFrame.new(door1.Position + Vector3.new(0,0,0.3))
door2.CFrame = CFrame.new(door2.Position + Vector3.new(0,0,-0.3))
wait()
end
wait(0.3)
for i = 1,30.3 do
door1.CFrame = CFrame.new(door1.Position + Vector3.new(0,0,-0.3))
door2.CFrame = CFrame.new(door2.Position + Vector3.new(0,0,0.3))
wait()
end
doorClosed = true
end
end
end)
Please help me, thank you.

2 comments
Is there any output? Have you added print()s to make sure the loops are starting at all?
I have no clue what an output is. And I did not add print().