Skip to content

NetMessage

Represents a network message used for communication between clients and servers.

Not newable

This object cannot be created by scripts using Instance.New().

Methods

AddString → nil

Parameters

key [ string ]

value [ string ]

Adds a string value to the message with the specified key.

AddInt → nil

Parameters

key [ string ]

value [ number ]

Adds an integer value to the message with the specified key.

AddBool → nil

Parameters

key [ string ]

value [ boolean ]

Adds a boolean value to the message with the specified key.

AddNumber → nil

Parameters

key [ string ]

value [ number ]

Adds a number value to the message with the specified key.

AddVector2 → nil

Parameters

key [ string ]

value [ Vector2 ]

Adds a Vector2 value to the message with the specified key.

AddVector3 → nil

Parameters

key [ string ]

value [ Vector3 ]

Adds a Vector3 value to the message with the specified key.

AddColor → nil

Parameters

key [ string ]

value [ Color ]

Adds a Color value to the message with the specified key.

AddInstance → nil

Parameters

key [ string ]

value [ Instance ]

Adds an Instance value to the message with the specified key.

GetString → string

Parameters: key [ string ]

Gets a string value from the message with the specified key.

GetInt → number

Parameters: key [ string ]

Gets an integer value from the message with the specified key.

GetNumber → number

Parameters: key [ string ]

Gets a number value from the message with the specified key.

GetBool → boolean

Parameters: key [ string ]

Gets a boolean value from the message with the specified key.

GetVector2 → Vector2

Parameters: key [ string ]

Gets a Vector2 value from the message with the specified key.

GetVector3 → Vector3

Parameters: key [ string ]

Gets a Vector3 value from the message with the specified key.

GetColor → Color

Parameters: key [ string ]

Gets a Color value from the message with the specified key.

GetInstance → Instance

Parameters: key [ string ]

Gets an Instance value from the message with the specified key.

New → NetMessage

Parameters: ``

Creates a new NetMessage instance.