To fix this, you need to make the camera follow the player's character instead. You do this by using a simple line of code that tells the camera to look at the character:
local player = Players.LocalPlayer
local character = player.Character
local camera = game.Workspace.CurrentCamera
camera.CameraSubject = character
This code sets the camera to follow the character, so when the character resets, the camera will stay with it and not go back to the menu.