network.desync

Temporarily blocks outgoing movement updates.

Syntax

Signature
network.desync(Enabled: boolean, Duration: number?) -> boolean

Aliases

  • raknet.desync
  • packets.desync
  • RakNet.desync

Parameters

ParameterTypeDescription
EnabledbooleanWhether temporary movement blocking should be active.
Durationnumber?Expiry in milliseconds from 1 through 30000. Defaults to 3000. Only validated when enabling.

Returns

TypeDescription
booleanWhether the change was accepted.

Notes

Temporarily blocks outgoing movement packets with ID 8. Enabling starts or renews the expiry timer. Disabling removes the temporary movement block. Enabling fails when the native implementation is unavailable or ID 8 was already blocked outside this feature.

Example

Luau
local Enabled = network.desync(true, 1000)
print(Enabled)
task.wait(1.1)
print(network.isdesynced())