---
title: "Test and save"
url: /docs/en-us/tutorials/curriculums/coding/test-and-save
last_updated: 2026-07-09T23:50:04Z
description: "Explains how to playtest and save your story game."
---

# Test and save

Now that the first sentence of your main story is complete and ready for players to write their own answer for the playerholder word, it's time to playtest your game to verify that the code runs properly, then publish your work to Roblox so that you can save your progress.

## Playtest your code

It's important to playtest your game often to ensure that your code works as expected. Studio offers several playtest options:

- **Test** – Starts the playtest by inserting your avatar at a spawn location.
- **Test Here** – Starts the playtest by inserting your avatar in front of the camera's current position.
- **Run** – Starts the playtest without inserting your avatar. Instead, the playtest begins at the current camera position and you can navigate around using the camera controls.

While all options are useful at different times, it's important to use a playtest option that inserts your avatar so that you can access the book and play through your story.

To playtest your code:

1. In the top-left corner of Studio, verify that your playtest is set to either **Test** or **Test Here**, then click the **Play** button. Studio enters playtest mode.
2. In the game, use the following player controls to walk up to the pedestal, then press `E` to open the book and start your story. Your first question should display if the code is working properly. | **Action** | **Control** |
| --- | --- | | **Move** | `W` `A` `S` `D` or arrow keys | | **Rotate** | Hold the right mouse button and look around. | | **Pan** | Hold the middle mouse button to drag your camera around. |
3. Answer the question and click the **Submit** button.
4. When you're done, return to the top-left corner of Studio, then click the **Stop** button. Studio exits playtest mode.

If your first sentence didn't show up, check out the following troubleshooting tips:

**Issue**: The book doesn't display your first question.

Check that the question is inside of quotation marks.

**Issue**: The story is combined.

Check the following:

- The first part of the story is inside of quotation marks.
- The name of the variable holding the player answers matches exactly. Capitalization counts!
- The name of the variable holding the player's answer is not inside of quotation marks.
- The two strings are separated by `..`.

**Issue**: The book doesn't display the first sentence of your story.

Check the `storyMaker:Write()` function to make sure the **story** variable is in between the parentesis.

## Publish to Roblox

If you were to close Studio now, you would lose every edit you made to your game. For this reason, it's important to publish your work to Roblox often to save your work and connect the game to your account.

> **Info:** It's recommended to publish to Roblox every ten minutes or after making a big change.

1. In the top-left corner of your computer, click **File** ⟩ **Publish to Roblox** to open the publishing window.
2. In the **Publish Experience** window,
  1. In the **Name** field, provide a name for your game.
  2. **OPTIONAL** In the **Description** field, provide a summary of what a player can expect from the game.
  3. In the **Devices** section, enable every device you want players to use to access your game.
  4. At the bottom-right of the window, click the **Create** button.

Now that your game is published and connected to your account, you can edit it from any computer!

> **Info:****Saving after publishing** Next time you want to save your work, just go to **File** ⟩ **Publish to Roblox** or use the hotkey combo (`Alt``P`/`⌥``P`).