# Sandbox.GameObject.PlaySound

```csharp
SoundHandle PlaySound(SoundEvent sound, Vector3 positionOffset = null)
```

Play this sound on this GameObject. The sound will follow the position of the GameObject.
You'll be able to use GameObject.StopAllSounds to stop all sounds that are following this GameObject.

### Parameters

- `sound` (`SoundEvent`)
- `positionOffset` (`Vector3`), default `null`

### Returns

`SoundHandle`

Declared in [Sandbox.GameObject](/api/Sandbox.GameObject).
Assembly: `Sandbox.Engine`.
