I suspect I've thoroughly mangled the memory but here goes:
A TV show from the late 80s or early 90s staring mostly kids. I only saw the last few minutes of one episode. A bunch of the kids were forced to dig out a blue glowing wall and if you touched it bad things happened. Then one kid touched it and they weren't hurt because reasons.
At the end there was something about transporting and the last shot was the hero group walking around the top of a modern looking tower but it wasn't where they wanted to be. It stuck with me because the end was a downer and, as I had up until then only seen such edgy stuff as Mr. Dressup and Polka Dot Door, I was all "Wait...the good guys didn't win? They aren't allowed to end it like that! It's against the rules!"