# Tool.setDispersionFraction

Sets the tool's dispersion fraction. This represents the accuracy of the tool, and affects the size of the player's crosshair.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
tool:setDispersionFraction( dispersion, dispersionSecondary? )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/Tool.md#setdispersionfraction)

**Availability:** Client only

A dispersion value of 0 is perfect accuracy, whereas 1 is the worst.

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `tool` | [Tool](../Game-Script-Environment/Userdata/Tool.md) | The tool. |
| `dispersion` | number | The dispersion fraction. |
| `dispersionSecondary` *(optional)* | number | The secondary dispersion fraction for circles. (Optional) |
