3 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

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:

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:

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.

Note

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.

    In the Description field, provide a summary of what a player can expect from the game.

    1. In the Devices section, enable every device you want players to use to access your game.
    2. 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!

Note

Saving after publishing

Next time you want to save your work, just go to File ⟩ Publish to Roblox or use the hotkey combo (AltP/⌥P).