# SScene

**Members** 4

|          |                                       |                                                                                                                                                               |
| -------- | ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Property | [ConnectedAvatars](#connectedavatars) | Returns the number of Avatars connected to the region.                                                                                                        |
| Property | [Avatars](#avatars)                   | Returns a table of SAvatar objects currently in the region                                                                                                    |
| Property | [Cells](#cells)                       | Returns a table of SCell objects. (Not all cells are available at all times, a client on this server must be within 384m of a cell in order for it to exist.) |
| Property | [Parcels](#parcels)                   | Access to the SParcelManager class.                                                                                                                           |

## Properties

### ConnectedAvatars

int ConnectedAvatars {get; }

Returns the number of Avatars connected to the region.

Example

**Lua**

```lua
numOfAvatars = Space.Scene.ConnectedAvatars

```

**Lua**

```lua
function OnAvatarJoin(id)
  local numOfAvatars = Space.Scene.ConnectedAvatars
  Space.Log("Avatar with ID " .. id .. "has joined")
  Space.Log("Number of avatars connected: " .. numOfAvatars)
end

```

### Avatars

Table Avatars {get; }

Returns a table of SAvatar objects currently in the region

Example

**Lua**

```lua
currentAvatars = Space.Scene.Avatars

```

### Cells

Table Cells {get; }

Returns a table of SCell objects. (Not all cells are available at all times, a client on this server must be within 384m of a cell in order for it to exist.)

Example

**Lua**

```lua
cellsTable = Space.Scene.Cells

```

### Parcels

[SParcelManager](/docs/scripting/server-scripting-api-reference/region/sparcelmanager.md) Parcels {get; }

Access to the SParcelManager class.

Example

**Lua**

```lua
Space.Scene.Parcels

```
