# ToolClass.client_onToggle

Called when the [Player](../Game-Script-Environment/Userdata/Player.md) presses a toggle key with the [Tool](../Game-Script-Environment/Userdata/Tool.md) equipped (default 'Q' and 'Shift' + 'Q).

**Kind:** Callback

**Environments:** Game

## Game

**Callback side:** Client

``` { .lua .api-signature }
ToolClass:client_onToggle(  )
```

[Open the full Game reference](../Game-Script-Environment/Classes/ToolClass.md#client_ontoggle)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `self` | table | The class instance. |

**Returns:**

| Type | Description |
| --- | --- |
| boolean | A boolean that indicates if other toggle actions should be blocked (rotating shapes). (Defaults to false) |
