> 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/combat/velocity.md).

# Velocity

It scales the horizontal and vertical movement and can limit the change to selected hits.

## Knockback amount

`Horizontal` and `Vertical` set the percentage of knockback to keep. `100%` is the vanilla amount. `0%` cancels the selected axis.

`Chance` controls how often the reduction applies. At `100%`, every qualifying hit uses the selected horizontal and vertical values. Lower values let some hits use normal knockback.

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

Values between `80-95%` reduce knockback while keeping part of the vanilla response.
{% endhint %}

## Conditions

`Only while targeting` reduces knockback only when a target is in your field of view. `Disable while holding S` restores full knockback while you hold the backwards key, which lets you take normal knockback when you need to reposition.

{% hint style="warning" %}
Servers that check player movement can detect changes to knockback. Use [AntiKnockback](/scripting/combat/antiknockback.md) or [Jump Reset](/scripting/combat/jump-reset.md) when you need different knockback conditions.
{% endhint %}

## Related modules

[AntiKnockback](/scripting/combat/antiknockback.md) can handle separate knockback sources. [Jump Reset](/scripting/combat/jump-reset.md) changes knockback with a jump after you are hit.
