As @SteveRambo said, its better to have an empty level as your “MainMenu” level, and transition to the default level from there using your current logic.
The problem currently is that you’re creating the widget and adding it to viewport on the default level (ThirdPersonMap) and then loading that level again, which causes the widget to be re-created and added to viewport, thus not working as you want it.
If you do not want to create a new level, you can just call “Remove from parent” after all the logic on the start button (“Button_280”).
Also I highly recommend you name your buttons on widgets so you do not get confused later on.
I have been getting confused about what I should do. Then I think that it might be better to delete the current main menu and create a new one. If so, where should I create a new file??
That is unnecessary as it won’t change anything. You just need to create a new empty level, go into your project settings, and set the default level there to be the empty level. Then, move your code from the ThirdPersonMap level blueprint to the new empty level blueprint (the code which creates the main menu UI and displays it). Again, it does not matter where you put files, they can be put anywhere. All that matters is how you implement the functionality to use them correctly. You said you were new to Unreal Engine, but do you have any programming experience? If not, and frankly in either case, you should look at the documentation before proceeding further. There are many Blueprint tutorials and explanations in there to get you started. Also, many of your questions are already answered in the documentation as well. There is a lot of basic information you need to know before you move on trying to tackle a project. We all have to start somewhere, best of luck!
Ship is the new empty level that I just created and I put some code in the ship’s level blueprint.
When I run it, the main menu shows up, I can click both buttons Start and Quit. Actually, I set background music for the game, and when I click the start button, the background music plays, but it does not go to the game screen.
Here is what I got so far.
The empty level must be loaded in the editor when you click the green triangle play button. Just double click the level to open it in the editor.
Make sure you removed the code from the ThirdPersonMap level blueprint.
Otherwise, what do you mean it won’t load the game screen? Be a little more specific. Is the map not loading? Is the UI still on the screen but the map is loaded? etc.