Skip to main content

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 NameReturn TypeParametersDescription
SendToServervoidstring, object[], MessageChannelSends data to the server (Client-only)
SendToClientvoidstring, string, object[], MessageChannelSends an object data array to a client (Server-only)
SendToAllClientsvoidstring, object[], MessageChannelSends an object data array to all clients (Server-only)