0.49.x✎

A local can be a constant.

0.49.x2026-09-15

FeatureEditorDocs

A local can be a constant.

Release

  1. 0.49.0A local can be a constant.New2026-09-15

Warning

Worth knowing before you upgrade.
  • 0.49.0const is a recent addition to Luau. A graph that uses it needs a runtime that has it — an older one refuses the file at parse time — so it is a choice per local rather than something Roswaal writes for you.

Added

  • 0.49.0Declare Local can bind with const — Binding, in the Inspector. Luau's constant is the same binding with one guarantee: the name cannot be reassigned after it is set. It is the binding that is fixed and not the value, so a const table is still a table you can write into.
  • 0.49.0A Set Local wired to a constant is refused before the file is written, naming the local that made the promise. The runtime would catch it; the graph knows which node to point at.