Skip to content

Language cheat sheet

.clh header · .clp module · .clpp script · .server Script · .client LocalScript

. 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

if else if else · while · C-for · range-for for (T x in xs) · switch · guard · match { Type t => } · break · return

async await · spawn { } · parallel { } · auto [a,b] = pcall(...)

.Fire ::Connect (manual) ~>Connect ~>Once · .OnChange on observables · GetPropertyChangedSignal

struct in .clh · Class::Method in .clpp · @this / @fieldself · void init() · new Class(parent) · GetService<T>()

[[server]] [[client]]

#pragma strict #pragma nostrict #pragma native #pragma optimize #pragma optimize 2 #pragma once

-> · 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