# Replay: lastTick property

> The lastTick read-only property of the Replay interface is the last room tick the replay can show.

The **`lastTick`** read-only property of the [`Replay`](/docs/client/replay) interface is the last room tick the replay can show, where playback ends.

## Value

A number, at least [`firstTick`](/docs/client/replay/firsttick).

## Description

[`seek()`](/docs/client/replay/seek) clamps a tick after `lastTick` to it, [`step()`](/docs/client/replay/step) returns `false` there, and reaching it while playing fires the [`ended` event](/docs/client/replay/ended-event).

## Examples

### Showing playback progress

A progress bar shows how much of the replay has been played.

```ts
// progress.ts
import type { Replay } from "@irtio/client/replay";

export function bindProgress(replay: Replay, bar: HTMLProgressElement): void {
  bar.max = replay.lastTick - replay.firstTick;
  replay.addEventListener("tick", () => (bar.value = replay.tick - replay.firstTick));
}
```

## See also

- [`Replay.firstTick`](/docs/client/replay/firsttick)
- [`ended` event](/docs/client/replay/ended-event)
