Auto-execute

Run scripts automatically every time Lynx attaches.

Anything in the AutoExec folder runs the moment Lynx loads into a Roblox client. Use it for things you always want loaded: a UI library, keybinds, your own helper functions.

Adding a script

  1. Find AutoExec under Files in the editor's sidebar. Settings → Client → Open AutoExec opens the folder itself.
  2. Right-click it & choose New Script, or drop a .lua, .luau or .txt file into the folder.
  3. Start Roblox. The script runs on its own.

The sidebar picks up new files immediately. There's no need to restart.

Order & timing

Lynx runs every script in the folder. Don't rely on the order they run in: if one script needs another, keep them in one file.

Auto-execute runs as soon as Lynx loads, which can be before the game has finished loading. Guard anything that touches the game:

AutoExec/ready.luau
if not game:IsLoaded() then
game.Loaded:Wait()
end
local Players = game:GetService("Players")
local player = Players.LocalPlayer
print("autoexec ready for", player.Name)

Disabling a script

Right-click a script in AutoExec & untick Auto Execute to skip it without deleting it. It stays in the list with an off badge. To skip all of them, turn off Settings → Client → Auto Execute.

Teleports

When you teleport to another place, Roblox builds a fresh game & your scripts stop. Auto-execute scripts run again in the new place.

For one-off code that should only survive the next teleport, use queue_on_teleport:

queue_on_teleport([[
print("arrived in", game.PlaceId)
]])