# Sandbox.ModelBuilder.AddAttachment

```csharp
ModelBuilder AddAttachment(string name, Vector3 position, Rotation rotation, string parentName = null)
```

Adds a named attachment point to the skeleton.

### Parameters

- `name` (`string`): The attachment name.
- `position` (`Vector3`): The position relative to the parent bone.
- `rotation` (`Rotation`): The rotation relative to the parent bone.
- `parentName` (`string`), default `null`: The parent bone name, or null for a model-space attachment.

### Returns

`ModelBuilder`

Declared in [Sandbox.ModelBuilder](/api/Sandbox.ModelBuilder).
Assembly: `Sandbox.Engine`.
