How to Auto-Execute Scripts
An executor runs every script in its auto-execute folder each time you join a game. You only need the right file name, the right folder, and a short wait at the top of the script.
Create the file
- Open Notepad and paste your script.
- Choose File → Save as. Type the name in quotes with the
.luauending, for example"my script.luau"; the quotes stop Windows from adding.txt. - Move the file into your executor's auto-execute folder. If there is none, create a folder called
autoexec.
Where the folder is
- Volt: press + in Volt and create an auto-execute file there.
- Wave: the AutoExecute folder in Wave's main folder.
- Real: right-click the script list and choose Open in Folder.
Wait for the game to load
Auto-execute starts before the game has finished loading, which can freeze the loading screen. Put this at the top of the script:
repeat task.wait() until game:IsLoaded()
task.wait(1)
Scripts that need a key
Put the key above the line that loads the script:
getgenv().Key = "YOUR-KEY-HERE"
loadstring(game:HttpGet("SCRIPT-URL"))()
Some loaders fail on the first try. A retry loop runs it again until it reports that it loaded:
repeat
task.spawn(function()
loadstring(game:HttpGet("SCRIPT-URL"))()
end)
task.wait(20)
until getgenv().Loaded
Auto-execute doesn't run
The file is really .luau.txt
- In File Explorer open View and turn on File name extensions.
- Rename the file so it ends in
.luau, not.luau.txt.
Wrong folder
- Check the folder for your executor under Where the folder is.