/roblox-ts

A TypeScript-to-Lua Compiler for Roblox

Primary LanguageTypeScriptMIT LicenseMIT

A TypeScript-to-Lua Compiler for Roblox

Discord server CI Status Coverage Status
 
⚠️ Disclaimer: roblox-ts should only be used for experimental projects until v1.0.0 ⚠️

Why?

As Roblox games become increasingly complex and larger in scope, efficiently writing safe code becomes challenging with Lua. In addition, Lua is difficult to make tooling for.

roblox-ts is designed to solve these problems by compiling TypeScript code directly into Lua, tuned for use in Roblox specifically.

How?

roblox-ts is an attempt to bridge the abilities of TypeScript to work in a Roblox environment. We break down your code into an abstract syntax tree (via ts-morph) and emit functionally similar structures in Lua so that the code behaves the same (minus the type information).

Quick start & Documentation

Ready to dive in? Check out the documentation.

Join the Community!

https://discord.gg/f6Rn6RY

Credits

roblox-ts is powered by ts-morph and is inspired by TypescriptToLua

Games that use roblox-ts