(Adding categories) |
Nollislide (talk | contribs) m (→{{property|name=AllowTeamChangeOnTouch|type=bool}}: fix weird typo) |
||
(37 intermediate revisions by 28 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Infobox class |
||
− | A SpawnLocation, often shortened to "Spawn", is a special location, which takes the form of a brick, where a[[File:SpawnLocationbrick.png|thumb|A Regular Gray SpawnLocation]] player spawns, or starts at, when the game is started or the player dies. |
||
+ | | explorer order = 3}} |
||
− | ==Types of SpawnLocations== |
||
+ | The '''SpawnLocation''' [[class]] [[inherit]]s from [[Class:Part|Part]]. |
||
− | There are several types of SpawnLocations that include: |
||
+ | |||
− | *Neutral Spawn Location - Generally gray. Does not belong to any team. |
||
+ | == Properties == |
||
− | *Team Spawn Location - Allows players to change teams when touching one. Useful in Obbies. Usually the same color as the team. |
||
+ | |||
− | *Permanent Neutral Spawn Location - Similar as a Neutral Spawn but you can not change team or change new SpawnLocation. |
||
+ | |||
− | *Permanent Team Spawn location - A Team Spawn that doesnt allowed to change |
||
+ | |||
− | *Non-Changeable Team Spawn - A spawn that can NOT get in the team. [[File:SpawnLocation.png|thumb|The decal on the spawn.]] |
||
+ | === {{property|name=AllowTeamChangeOnTouch|type=bool}} === |
||
− | ==Spawn Killing== |
||
+ | |||
− | Many people use SpawnLocations to "abuse". When someone killed them on a Spawn, they are usually angered and flame the killer. It is usually only considered Spawn Killing if the player is killed several seconds after they spawn, right when they spawn, or while they're on a spawn. |
||
+ | 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]]. |
||
− | [[Category:Lua Instance Objects]] |
||
+ | |||
− | [[Category:Objects]] |
||
+ | === {{property|name=Duration|type=int}} === |
||
− | [[Category:Lua Objects]] |
||
+ | |||
+ | The amount of time that a {{Class link|ForceField}} will stay on a player after spawning at this spawn. Set to 0 for no forcefield. |
||
+ | |||
+ | === {{property|name=Enabled|type=bool}} === |
||
+ | |||
+ | Whether or not {{Class link|Player}}s can spawn at this spawn. |
||
+ | |||
+ | === {{property|name=Neutral|type=bool}} === |
||
+ | |||
+ | If set to true, this spawn belongs to no team and any team can spawn here. |
||
+ | |||
+ | === {{property|name=TeamColor|type=BrickColor}} === |
||
+ | |||
+ | The team this spawn belongs to. Corresponds with a TeamColor of a {{Class link|Team}} in the {{Class link|Teams}} service. |
||
+ | |||
+ | == External links == |
||
+ | |||
+ | * {{DevHub class link}} |
||
+ | * {{Roblox API Reference class link}} |
Revision as of 07:27, 9 April 2020
The SpawnLocation class inherits from Part.
Properties
AllowTeamChangeOnTouch: bool
If set to true, Players who touch this spawn will automatically change to the Team that has this spawn's TeamColor.
Duration: int
The amount of time that a ForceField will stay on a player after spawning at this spawn. Set to 0 for no forcefield.
Enabled: bool
Whether or not Players 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 in the Teams service.