> For the complete documentation index, see [llms.txt](https://volt-4.gitbook.io/volt-help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://volt-4.gitbook.io/volt-help/beginners/auto-execution.md).

# how to auto execute

this explains how to Auto Execute in Volt.

press this highlighted button and then name the file whatever you want:

<figure><img src="https://3970041634-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FySf9Nbp2DGBplDUE8yze%2Fuploads%2FKiyj1EbIASdVGO15NN03%2Fimage.png?alt=media&amp;token=fcd5dcfe-5d72-4a85-bf04-06e22a8cc053" alt=""><figcaption></figcaption></figure>

open the file you just made in Auto Execution and put your script in like this:

```luau
if not game.IsLoaded() then game.Loaded:Wait() end
--your script here
```

after putting in your script it should look like this:

<figure><img src="https://3970041634-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FySf9Nbp2DGBplDUE8yze%2Fuploads%2F3KVa0JfqyGdPVeGoku5Q%2Fimage.png?alt=media&amp;token=cf2f3e82-2abc-49cc-9e82-b5d0fab4f2d3" alt=""><figcaption></figcaption></figure>

now, join/rejoin a game in Roblox and the script should get automatically executed.
