Action Shot picture taking

We have a game that we are trying to take “action shots” for. The camera follows the player by default but when passing through certain collision boxes, we want a different camera in a predetermined position to take a picture for use later. The pieces all work together correctly, but when put together as one script, it doesn’t have the right functionality.

This switches to the ActionShot camera, takes a screenshot, and then switches back. The problem is that the screenshots all show the default camera position. This leads me to assume the camera switch is too fast and the screenshot takes the picture after the camera is already switched back.