Skip to main content

roblox-ts

A TypeScript-to-Luau Compiler for Roblox

import { CollectionService } from "@rbxts/services";

for (const obj of CollectionService.GetTagged("Lava")) {
if (obj.IsA("BasePart")) {
obj.Touched.Connect(part =>
part
.Parent
?.FindFirstChildOfClass("Humanoid")
?.TakeDamage(100)
);
}
}

Type Safety

With static types, you'll never run into errors caused by typos, indexing an undefined value, or passing the wrong type of value into a function ever again.

Community & Ecosystem

An active community with an ecosystem consisting of a growing number of community-made packages. Many popular modules for Roblox already have typings written for roblox-ts.

Unparalleled Tooling

Allows access to a large number of existing tools made for TypeScript. Use industry standard tools like ESLint, VSCode, Prettier, and more!