# SpawnLocation

SpawnLocation : `FormFactorPart`

## Overview

A SpawnLocation is an Object that defines where a player's character will appear in the game.

When a player joins the game or their character dies during gameplay, the character respawns at the location specified by the SpawnLocation

## Properties

### Enabled

`boolean`

Sets whether the SpawnLocation is active.

If a SpawnLocation is disabled, characters will not spawn there. If no active SpawnLocation exists in the game, the character will spawn at the coordinates (0, 0, 0).

#### Code Samples

```lua
local SpawnLocation = script.Parent

SpawnLocation.Enabled = false
```

### Neutral

`boolean`

Sets whether the SpawnLocation is team-neutral.

When this property is set to true, any player can spawn at this location regardless of their team.

If set to false, only players whose team color (Player.TeamColor) exactly matches the spawn location's team color (SpawnLocation.TeamColor) will spawn there.

#### Code Samples

```lua
local SpawnLocation = script.Parent

SpawnLocation.Neutral = true
```

### TeamColor

`BrickColor`

Sets which team is connected to the SpawnLocation.

If the Neutral property is disabled, only players with matching team color can be spawned on the SpawnLocation.

#### Code Samples

```lua
local SpawnLocation = script.Parent

SpawnLocation.TeamColor = BrickColor.new("Lime green")
```

## Methods

## Events


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.overdare.com/development/api-reference/classes/spawnlocation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
