# Tool.updateJoint

Sets the rotation and weight for a bone in the animation skeleton.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
tool:updateJoint( name, rotation, weight? )
```

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

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `tool` | [Tool](../Game-Script-Environment/Userdata/Tool.md) | The tool. |
| `name` | string | The name. |
| `rotation` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The rotation. |
| `weight` *(optional)* | number | The weight. (Defaults to -1.0) |
