Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

LSL to SLua Converter

Free online converter for migrating Second Life LSL scripts to SLua (Luau).

screenshot


Features

  • 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

How to use

  1. Open https://converter-lsl-slua.netlify.app/
  2. Paste your LSL on the left (or load a .lsl file)
  3. Click Convert (or turn on auto)
  4. Copy the SLua result, or download it as .luau

Warnings are shown in two groups: to review (yellow) and fixed automatically (green).

Found a bug?

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.

How it works

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.

License

MIT