Roblox Wiki
Roblox Wiki
Tag: sourceedit
Tag: sourceedit
Line 10: Line 10:
 
=== {{property|name=AllowTeamChangeOnTouch|type=bool}} ===
 
=== {{property|name=AllowTeamChangeOnTouch|type=bool}} ===
   
If set to true, {{Class link|Player}}s who touch this spawn will automatically change to the team that has this spawn's [[#TeamColor|TeamColor]].
+
If set to true, {{Class link|Player}}s who touch this spawn will automatically change to the {{Class link|Team}} that has this spawn's [[#TeamColor|TeamColor]].
   
 
=== {{property|name=Duration|type=int}} ===
 
=== {{property|name=Duration|type=int}} ===

Revision as of 10:58, 27 April 2017

The SpawnLocation class inherits from Part.

Properties

This class has five properties.

AllowTeamChangeOnTouch: bool

If set to true, Player light iconPlayer dark iconPlayers who touch this spawn will automatically change to the Team light iconTeam dark iconTeam that has this spawn's TeamColor.

Duration: int

The amount of time that a ForceField light iconForceField dark iconForceField will stay on a player after spawning at this spawn. Set to 0 for no forcefield.

Enabled: bool

Whether or not Player light iconPlayer dark iconPlayers can spawn at this spawn.

Neutral: bool

If set to true, this spawn belongs to no team and any team can spawn here.

TeamColor: BrickColor

The team this spawn belongs to. Corresponds with a TeamColor of a Team light iconTeam dark iconTeam in the Teams light iconTeams dark iconTeams service.