Free online converter for migrating Second Life LSL scripts to SLua (Luau).
👉 Live site: https://converter-lsl-slua.netlify.app/
- 30+ events mapped with correct signatures, including newer ones
- Automatic index base-shifting across all affected list/string functions
- Detects functions that return nil instead of -1 in SLua and adjusts comparisons accordingly
- Detects functions that return native booleans instead of 0/1
- Return-type inference for around 150 built-in functions
- Type/literal conversion for vectors, rotations, and lists into proper Lua tables, with correct defaults
- Full operator conversion between LSL and Lua syntax
- Automatic handling of detected-event indexing
- Auto-fixes variable shadowing, reserved keyword conflicts, and unused variables (silences SLua editor warnings)
- Available in 8 languages
- Open https://converter-lsl-slua.netlify.app/
- Paste your LSL on the left (or load a
.lslfile) - Click Convert (or turn on auto)
- Copy the SLua result, or download it as
.luau
Warnings are shown in two groups: to review (yellow) and fixed automatically (green).
Use the ⚠ Report error button on the site — it sends the script, the result and the error message straight to me, so I can fix it fast.
The converter is a real pipeline — tokenizer → parser → resolver → code generator (not regex) — so it understands the structure of your LSL instead of doing find-and-replace. Built with Claude Fable 5.
Still improving it.
