---
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="https://downloads.intercomcdn.com/i/o/fxxlrhi6/1532876453/59b141ef1e1b855676d2d0baab61/ScreenRecording2025-05-20at8_42_23PM-ezgif_com-video-to-gif-converter.gif" 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="https://downloads.intercomcdn.com/i/o/fxxlrhi6/1528441688/c56e7771d7d2d18c6788711345f3/sss.png" 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="https://downloads.intercomcdn.com/i/o/fxxlrhi6/1528443526/6a6bfb91dbcd69fa19faabf7b571/sss.png" 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="https://downloads.intercomcdn.com/i/o/fxxlrhi6/1249920501/a96da59cfb8fed973d1981d9fe91/Screenshot+2024-11-13+at+2_00_33+PM.png" alt="The Reset button in the Script panel" />