Network
Network is used to send data from the Client to the Server and the Server to the Client.
danger
The Network handler is NOT available on LocalAvatarScripts!
To get the Network class, you must get its handler.
let Network = instance.GetHandler("Network")
You can then use the Network property to access the Network class.
Methods
| Method Name | Return Type | Parameters | Description |
|---|---|---|---|
| SendToServer | void | string, object[], MessageChannel | Sends data to the server (Client-only) |
| SendToClient | void | string, string, object[], MessageChannel | Sends an object data array to a client (Server-only) |
| SendToAllClients | void | string, object[], MessageChannel | Sends an object data array to all clients (Server-only) |