# Effect.setVelocity

Sets the velocity of an effect. The effect will move along at the set velocity until it receives a new position.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
effect:setVelocity( velocity )
```

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

**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. |
| `velocity` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The velocity. |
