Collapse Sidebar




Allows a Player to join the team by touching the SpawnLocation. When set to true, if a Player character comes into contact with the SpawnLocation, the player’s Player/TeamColor will be set to SpawnLocation/TeamColor. Player/Neutral will also be set to SpawnLocation/Neutral upon contact, meaning a player can also become neutral by touching a spawn location.

Making Checkpoints

This feature is often used to make checkpoints in obstacle courses or similar games. See Articles/How to use Spawn Objects with Roblox Studio|Using Player Spawns for details.

Code Samples

SpawnLocation Checkpoints

This sample demonstrates how SpawnLocations can be used to make a checkpoint system. Typically this would be done Studio and not in Lua, but this example serves as a comprehensive example of what Team and SpawnLocation properties need to be used to achieve this setup.