# Effect.setRotation

Sets the orientation of an effect using a quaternion.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
effect:setRotation( rotation )
```

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

**Availability:** Client only

> **Note:**
> Does not work if the effect has a host.

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `effect` | [Effect](../Game-Script-Environment/Userdata/Effect.md) | The effect. |
| `rotation` | [Quat](../Game-Script-Environment/Userdata/Quat.md) | The rotation. |
