How to stop only one scene in a project?

I want to detect when one scene is done, then make it stop until it’s selected again. How can I only stop the scene I’m currently on?

The
Untitled script pic - 2026-01-17T155704.460 block only stops the scene that the block is in. Switching to another scene “pauses” the first scene.

If you want the scene to stop, rather than pause; you might want a Untitled script pic - 2026-01-17T155937.379 before switching to a scene