NetworkEvent¶
NetworkEvents are events that can be called to communicate between server and client. NetMessages are the class used for sharing data between server and client when sending NetworkEvents.
Inherits: Instance
Properties¶
- Reliable:
boolean
Methods¶
InvokeServer(msg: NetMessage, _: any) → nil¶
Sends a message to the server.
InvokeClient(msg: NetMessage, player: Player) → nil¶
Sends a message to a specific client.
InvokeClients(msg: NetMessage) → nil¶
Sends a message to all connected clients.
Events¶
- InvokedServer: Fires when server receives message from client
- InvokedClient: Fires when client receives message from server