PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

Neutral

SpawnLocation

bool

Whether or not a spawn is affiliated with a specific team. This means that any Player, of any Team, can spawn on it if this property is set to true.

If Neutral is set to false, only players whose Player/TeamColor is equal to SpawnLocation/TeamColor can use the SpawnLocation.

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.