function Move(p)DoorLogo.Moving:Play()for J=1,58,1 do wait(.01)local v,A,d=DoorSeg.CFrame.X,DoorSeg.CFrame.Y,DoorSeg.CFrame.Z Door:SetPrimaryPartCFrame(DoorSeg.CFrame*CFrame.new(p and-0.1 or.1,0,0))end DoorLogo.Moving:Stop()DoorLogo.Closed:Play()end

function Move(O)
	DoorLogo.Moving:Play()
	 for i = 1, 58 do
  		wait(0.01)
		-- Changes the door cframe position.
  		local X, Y, Z = DoorSeg.CFrame.X, DoorSeg.CFrame.Y, DoorSeg.CFrame.Z
  		Door:SetPrimaryPartCFrame(DoorSeg.CFrame * CFrame.new((O and -0.1 or 0.1),0,0))
 	end	
	DoorLogo.Moving:Stop()
	DoorLogo.Closed:Play()
end
