network.desync
Temporarily blocks outgoing movement updates.
Syntax
Signature
network.desync(Enabled: boolean, Duration: number?) -> booleanAliases
raknet.desyncpackets.desyncRakNet.desync
Parameters
| Parameter | Type | Description |
|---|---|---|
Enabled | boolean | Whether temporary movement blocking should be active. |
Duration | number? | Expiry in milliseconds from 1 through 30000. Defaults to 3000. Only validated when enabling. |
Returns
| Type | Description |
|---|---|
boolean | Whether 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())