PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

TeamColor

SpawnLocation

BrickColor

The TeamColor property sets what team the SpawnLocation is affiliated to. If SpawnLocation/Neutral property is false, only Players with the same Player/TeamColor as the spawn’s TeamColor will be able to spawn there.

If SpawnLocation/AllowTeamChangeOnTouch is true Player/Neutral will be set to this property upon contact with the spawn.


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.