PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience

Creating Checkpoints

Creating Checkpoints

Prerequisites Students should have completed Intro to Studio Part 3
Lesson Time Approx 15 - 30 minutes
Optional Handouts Roblox Studio Cheatsheet
Learning Objectives
  • Understand at least two ways that checkpoints/multiple spawn locations benefit player experience.
  • Learn how to use Team Service and Spawn Locations to add multiple checkpoints in the game.
  • Practicing Fun Game Design

    As you build your obby, it’s important to think about the design choices you include that make your game fun and interesting to others.

    Ask students to briefly describe features from the obbies they played before that improved their playing experiences. These may be features that added a level of fun, excitement, or challenge. If your students haven't played many Roblox games, they can reference similar action games like Super Mario or Temple Run. they can Have at least 3 students share one feature.

    Possible ideas:

    • Exciting starting areas with unique themes.
    • Variety of different jump puzzles.
    • Jump puzzles get harder as players go, they don’t start off too difficult.

    Multiple Levels & Spawn Locations

    While you can make a long obby, it can be frustrating for a player to get nearly to the end and then fall, losing all their progress. Having multiple spawn locations lets the player re-spawn, or restart, after reaching certain parts of your game, making the game more fun. You may have this common game design tool, sometimes called checkpoints, in games like Super Mario.

    Spawn locations are good to include in the following situations:

    • Before or after a difficult jump.
    • After players have played for a while.

    Ask students why having multiple spawn locations improves a player's experience. This is an opportunity to discuss good design practices and encourage students to think about how they can affect a player's experience.

    Possible ideas:

    • Players feel good when they beat a level, which keeps them playing.
    • It gives players a sense of progression (like they're growing or improving).
    • They’re like chapters in a book, levels can be used for different parts of a story.

    Setting up the Team/Spawn Location System

    Each player has a certain SpawnLocation assigned to them. Every time the player touches a new spawn, the new location replaces their old one. If they fall, they will respawn on the last spawn location they touched.

    Add the Team Service

    We use a special tool in Roblox called Team Service to create multiple spawn locations. Each team has a unique spawn location assigned to it. When a player changes a team, they change their spawn location. This is an easy way of using Roblox’s built in tools to add multiple spawn locations.

    1. Select the Model tab.
    2. In the Advanced section (furthest right), click Service (two cogs).
    1. Select Teams.
    2. Click Insert.
    1. Check that you have a Teams folder in the Explorer.

    Add a Team

    With the Team service added, you can now create teams. Remember, each team that you create will actually be a different spawn location (checkpoint) in your obby. As the player goes through our game, they’ll be switching teams to switch their most recent spawn location.

    1. In the Explorer, right-click Teams.
    2. Click Insert Object > Team.
    You'll now notice a team is created in the Teams folder.

    Troubleshooting Tip

    If Team doesn't show up, try restarting the steps. It's possible to accidentally right click the wrong object or not insert the Team service.

    Rename the Team

    Rather than having a team name, we want a area name. The name should match the theme of your game. Below are some examples names:

    • Level 1 - Unicorn Valley
    • Village Area
    • Beginner’s Dojo

    Do the following to rename the team:

    1. Right-click Team.
    2. Select Rename.
    1. Add a descriptive name.
    2. Select Teams.
    3. Click Insert.
    1. Check that you have a Teams folder in the Explorer.

    Modifying Team Spawns

    At the moment, any team can use your original SpawnLocation. While this sounds like a good thing, a player on your 15th spawn location might accidentally respawn at the beginning of the whole game.

    Set Team Properties

    To fix this possible problem, we need to change the team properties.

    1. Click on your starting SpawnLocation.
    2. In the Properties window, uncheck Neutral.
    Now players can only spawn at this SpawnLocation if they match the TeamColor of the SpawnLocation. This will prevent any possible problems we might have in our game.

    Assign Team to the first SpawnLocation

    For a team and a SpawnLocation to match up, the Team Color and SpawnLocation need to match exactly.

    1. In SpawnLocation Property Window, look for the TeamColor; you’ll need to remember this color.
    2. Click on the Team object you renamed.
    3. Set the TeamColor to match the first SpawnLocation.
    4. Test your game.

    Troubleshooting Tip

    If the SpawnLocation is not working, check the following:

    1. Make sure to replace the TeamColor, not the BrickColor of the SpawnLocation.
    2. Make sure that the colors match exactly.

    Adding More Spawn Locations

    Now you can start the process of adding more spawn locations to give your player a longer, more interesting experience.

    Setup the SpawnLocation

    1. Create a new SpawnLocation.
    2. Rename the SpawnLocation SpawnLocation2.
    3. Check AllowTeamChangeOnTouch. Now whenever somebody touches the SpawnLocation, they’ll join the matching team color.
    4. Uncheck Neutral.
    5. Pick a new TeamColor.

    Setup the Team Object

    1. Create a new Team Object (right-click Teams > Insert Object > Team).
    2. Rename it to your level name. E.g. Level 2 - Happy Goat Mountain.

    Change Team Properties

    1. Uncheck AutoAssignable.
    2. Change TeamColor to match the new SpawnLocation.
    Only the first Team should be set to AutoAssignable. That way players will automatically be assigned to the first level when they start the game.

    Continue your Project

    1. Add at least 3 new spawn locations.
    2. Test after adding each point to check that it works as intended.

    Rules for Adding More Spawn Locations

    You can add many spawn locations, just be sure to do the following for each one

    1. Rename each one to something different (for example, SpawnLocation2, SpawnLocation3 ...
    2. Use a different team color for each spawn location/team object.

    Troubleshooting Your Code

    Issue: Sometimes the player spawns on the wrong location

    Check to make sure all the following are true:

    • Only the first team is set to AutoAssign.
    • The SpawnLocation is marked neutral .
    • The color matches on the SpawnLocation TeamColor and the Team object TeamColor.

    These documents are licensed by Roblox Corporation under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Roblox, Powering Imagination, and Robux are trademarks of Roblox Corporation, registered in the United States and other countries.


    Previous Colors and Materials Next Creating a Script