Getting started
evasive runs Luau scripts next to Roblox. A script can read the game (players, characters, parts, the camera), draw on top of it, add its own tab to the menu, read and write files, and call web APIs. This page shows you where everything is.
Where scripts live
Scripts are plain text files ending in .lua or .luau. They live in one folder, Documents\evasive roblox\scripts.
If evasive cannot write to your Documents folder, it uses %APPDATA%\evasive roblox\scripts instead. The quickest way to find the right one is the Open folder button in the Scripts tab.
Next to scripts there is a workspace folder. That is where writefile and readfile work, so the files your scripts make stay apart from the scripts themselves.
You can write scripts in the built-in editor or in any editor you like. A file you drop into the folder shows up in the list within a second. The refresh icon on the Scripts card rescans at once.
The Scripts tab
Open the menu (INSERT by default) and pick Scripts. It sits between Misc and Config. At the top are three pages: Scripts, Console and Settings.
Scripts
The left card lists every script in the folder. Each row has four buttons:
| Button | What it does |
|---|---|
| Play / Stop | Runs the script, or stops it while it runs. Double-clicking the row does the same. |
| Pencil | Opens the script in the editor. |
| Bolt | Adds the script to autoexec, or takes it off. |
| Trash | Deletes the file. Press it twice within three seconds. |
A running script shows a green "running" tag. A script that failed to compile shows "error" until you run it again.
The + icon makes a new script. Type a name (letters, digits, spaces, -, _ and . are fine) and press Create. If you leave off the extension, .lua is added. The new file opens in the editor with one print line in it.
On the right you have three cards:
- Status shows how many scripts are running and how many failed. It has the Open folder and Stop all buttons.
- AI assistants turns on the local server that AI coding tools can use. See Using an AI assistant.
- Output shows the newest 200 console lines from every script. The X icon clears the console. The other icon moves Output into its own window, which you can drag anywhere. Close that window to put it back.
Console
The Console page is the full log, up to about 2000 lines. Use the Show box to see one script's lines only. The icons copy the shown lines to the clipboard or clear the console.
Each line has the time, the script it came from and the text. print lines are grey, warn lines are yellow and errors are red. Lines that evasive writes itself, like "started" and "finished", carry the script's name too.
Settings
- Allow unsafe Luau lets scripts read and write the game's memory. It is off by default. See Permissions.
- Run autoexec scripts turns autoexec on or off as a whole.
The editor
The pencil opens a floating editor window next to the menu. You can drag it and resize it. Its title bar has Run and Save, and Stop while the script runs.
| Key | Action |
|---|---|
| F5 | Save and run |
| Shift+F5 | Stop |
| Ctrl+S | Save |
| Esc | Stop typing (the menu gets your keys back) |
Run always saves first, so what runs is what is on disk. When a script fails to compile, the editor marks the line and shows the message at the bottom.
If you close the editor with unsaved changes, it asks you to press X a second time.
Loading and stopping a script
To run a script, press its play button, double-click its row, or press F5 in the editor. Running a script that is already running restarts it.
To stop one, press its stop button. Stop all stops every script at once.
When a script stops, evasive cleans up after it. Its drawings disappear, its menu tab goes away, its event connections are dropped and any keys it held down are released. You never have to write cleanup code for that.
Autoexec
The bolt button marks a script for autoexec. Marked scripts start by themselves once a place has loaded, one time each time evasive starts. The row shows a bolt and a small "autoexec" note.
The Run autoexec scripts switch in Settings turns the whole thing off without losing your marks. Deleting a script also takes it off the list.
Next
Write your first script on the next page: Your first script.