> For the complete documentation index, see [llms.txt](https://daikirai.gitbook.io/scripting/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://daikirai.gitbook.io/scripting/network/lag-range.md).

# Lag Range

Players inside `Start range` use one delay, while players beyond it use another. You see an older position on your screen even though the server has the player's current position. A large buffer can make players look frozen or out of sync.

{% hint style="warning" %}
**Hypixel**

Hypixel currently eases burst movement packets in all game modes. Lag Range no longer gives its old teleport or hit advantage there and can cause ghosting. Disable Lag Range on Hypixel.
{% endhint %}

## Split close and far delays

`Packet delay (close)` controls players inside `Start range`. `Packet delay (far)` controls players beyond that boundary. The two controls accept `10-800 ms`.

`Start range` sets the boundary between the two delays. It accepts `7-15 blocks`.

{% hint style="success" %}
**Legit setup**

On a server where delayed positions still help, start with `Packet delay (close)` at `150 ms`, `Packet delay (far)` at `250 ms`, and `Max lag time` at `5 seconds`. If close players ghost, reduce or disable the close delay.
{% endhint %}

## Limit and vary the buffer

`Max lag time` caps how long a player's position can stay buffered. It accepts `0.5-15 seconds`. A `5 second` limit is a useful starting point.

`Random lag` varies the delay instead of using one fixed value. Leave it off for predictable timing, or turn it on when you want the delay to change.

`Weapon only` limits the delay to weapon-held situations. `Invisible players` includes invisible players in the buffer. `Ignore teammates` skips teammates. `Disable adventure` turns Lag Range off in Adventure mode.

## Release positions before actions

The flush conditions release buffered positions before actions that can depend on current player locations. Enable the conditions that match the items you use:

* `Holding bow`
* `Holding fireball`
* `Holding buckets`
* `Holding fishing rod`
* `Holding ladders`
* `Holding any block`
* `Interact item`

`Show server position` draws a ghost at each player's real server position while updates are buffered. Use it to check how far the displayed position has fallen behind.

If you want one recent position buffer instead of separate close and far delays, see [Backtrack](/scripting/network/backtrack.md).
