# Shape.setCollisionSoundEnabled

Sets if the shape should generate sound on collisions.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
shape:setCollisionSoundEnabled( enabled )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `shape` | [Shape](../Game-Script-Environment/Userdata/Shape.md) | The shape. |
| `enabled` | boolean | Whether the sound should be enabled or not. |
