Language cheat sheet
.clh header · .clp module · .clpp script · .server Script · .client LocalScript
Access
Section titled “Access”. property / instance method · : type / protected call · :: static / manual Connect · [] index · .: concat · ~> Janitor Connect/Once
"double" · 'single' · `template {expr}` · `a`, expr, `b`
post output · warn warning · report error · null empty value · to_string / to_number / to_bool convert
int float double bool string void func auto optional<T> array<T> dictionary<K,V> Player signal<T...> observable T
Control
Section titled “Control”if else if else · while · C-for · range-for for (T x in xs) · switch · guard · match { Type t => } · break · return
Concurrency
Section titled “Concurrency”async await · spawn { } · parallel { } · auto [a,b] = pcall(...)
Events
Section titled “Events”.Fire ::Connect (manual) ~>Connect ~>Once · .OnChange on observables · GetPropertyChangedSignal
struct in .clh · Class::Method in .clpp · @this / @field → self · void init() · new Class(parent) · GetService<T>()
Attributes
Section titled “Attributes”[[server]] [[client]]
Pragma
Section titled “Pragma”#pragma strict #pragma nostrict #pragma native #pragma optimize #pragma optimize 2 #pragma once
Forbidden (by design)
Section titled “Forbidden (by design)”-> · C pointers · continue · ternary · do/while · try/catch · goto · C++ captures · func [] · generic templates · std::
Generated API: Builtins · Operators · Signals
Header-style index (every utility): Language reference