Collapse Sidebar




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.