# Character.getCanSwim

Returns whether the character will float or sink in liquid.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
character:getCanSwim(  )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `character` | [Character](../Game-Script-Environment/Userdata/Character.md) | The character. |

**Returns:**

| Type | Description |
| --- | --- |
| boolean | True if the character will float, false if the character will sink. |
