# Network

A userdata object representing a <strong>network</strong> object.

**Kind:** API page

**Environments:** Game

## Game

[Open the full Game reference](../Game-Script-Environment/Userdata/Network.md)

<strong>Network</strong> is used for sending data between scripts running on server and client. This allows the server to call a function on the client with optional arguments, and vice versa.

> **Note:**
> A network object is accessable via `self.network` in scripted shapes (see [ShapeClass](../Game-Script-Environment/Classes/ShapeClass.md)).

> **Warning:**
> Network allows any Lua data to be sent between the host and other players in real-time. This may result in <strong>high latency</strong> and lag in multiplayer.
> To avoid lag and minimize bandwidth usage, consider only sending data when necessary, when data has changed, and attempt to send as little amount of data as possible.
