---
title: How can I edit the script?
description: Edit the script of your invideo AI video: split, merge, add or delete segments and add gaps from the Script panel.
---
You edit the script from the **Script** panel. Each sentence is a segment, and you change it with a right-click.

1. Click **Edit**, then **Script**.

<Image src="/images/help/s106.webp" alt="Clicking Edit, then Script, to open the Script panel" />

2. Find the sentence you want to edit in the list of chapters.
3. Right-click the sentence to see the options.

<Image src="/images/help/s176.webp" alt="The right-click menu on a script sentence with the segment options" />

## What each option does

- **Split segment here**: Splits the sentence into two. You can add a new media keyword for the new segment.

<Image src="/images/help/s177.webp" alt="A sentence split into two segments, with a box for the new media keyword" />

- **Merge with previous**: Joins the sentence with the one above and removes its media keyword.
- **Merge with next**: Joins the sentence with the one below and removes its media keyword.
- **Add segment before/after**: Adds a new box above or below the selected sentence.
- **Delete segment**: Deletes the sentence and its media keyword.
- **Add gap here**: Adds a pause in the voiceover and makes the media play longer.

To undo your changes, click **Reset**.

<Image src="/images/help/s178.webp" alt="The Reset button in the Script panel" />