Skip to main content
Sends a packet of your own onto the network, as if the client sent it.
RakNet is the network connection between your client and the Roblox server over the internet.
Pretty much the same as RemoteEvents and RemoteFunctions - they send their data the same way. This function just builds the packet yourself instead of going through a remote.
data is the payload, in any of the same three forms a RakNetMessage exposes. priority, reliability, and orderingChannel are RakNet’s standard send numbers; copy them from the packet you are replaying instead of guessing.

Parameters

Returns

void

Example

Send a payload built from a byte array.
Lower-level protocol sending can easily trigger server bans if incorrect values are sent.