# how to auto execute

press this button to make a file and name the file whatever you want:

<figure><img src="/files/MM1RXtBZW5m2Mzf8jTPS" alt=""><figcaption></figcaption></figure>

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

```luau
repeat task.wait() until game:IsLoaded()
task.wait(1)
--your script here
```

after putting in your script it should look like this:

<figure><img src="/files/IAhkQVtVlZtEHlOnsVQA" alt=""><figcaption></figcaption></figure>

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://volt-4.gitbook.io/volt-help/beginners/auto-execution.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
