Edit: Question Resolved.
✓ ANSWER ACCEPTED
Spectating script won't work?
1 answer
✓ Accepted answer
Maybe put a wait() in the beginning? Because sometimes a script always needs a wait. I know It helped with mine. Though I'm not guaranteed it will work with yours.
It's worth a shot though.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
At the beginning? Because it's an event when the TextButton is clicked, so I don't think it would need one.
Try when the camera is about to be loaded to "Attach".