Instances
SpawnLocation
A BasePart that the runtime can use as the player's character spawn point.
Inheritance
SpawnLocation shares the complete BasePart property set.
Defaults when created by script
| Name | Type | Description |
|---|---|---|
Size | Vector3 | 6, 1, 6 |
Colour | Colour3 | Green spawn colour. |
Shape | Enum.PartShape | Block |
Anchored | boolean | true |
CanCollide | boolean | true |
Example: Create A Spawn Pad
Luau
local spawn = Instance.new("SpawnLocation")
spawn.Name = "MainSpawn"
spawn.Position = Vector3.new(0, 2, 0)
spawn.Size = Vector3.new(8, 1, 8)
spawn.Bevel = 0.2
spawn.Parent = workspaceGlorpia chooses a SpawnLocation from Workspace when spawning the local character.