How can I keep multiplayer active while switching to another level?

I have a basic method, but it still doesn’t progress to the next level; sometimes it crashes, sometimes it resets the view angle, but it never moves to the next level.