Roblox adds Luau exports and cyclic requires in Studio beta
Roblox adds exported values and cyclic requires in Studio beta. Test module state and initialization order before adopting the new syntax.
Roblox introduced exported values and cyclic requires in Studio beta on November 12, 2026, for developers organizing Luau modules. According to the November 12, 2026 announcement, developers can enable both through Luau Modularity in Studio’s Beta Features. The export syntax removes manual module-table construction and lets mutually dependent modules load under specific initialization rules.
Exports change state handling
Roblox says Luau gathers exported declarations into the table returned by require, preserving the calling pattern for existing consumers. Modules that return tables manually remain supported, and migration is optional. Roblox reports equivalent performance, rather than a speed improvement.
Export declarations must be at module scope, with unique names. Value exports cannot coexist with top-level returns, including returns inside top-level conditionals; type-only exports retain that option. Exported functions and constants cannot be reassigned. After loading, exported modules are frozen, so other exported values also cannot be reassigned, even internally. Mutable state belongs in ordinary locals accessed through functions.
Test initialization before adopting cycles
For a require cycle, Roblox requires every participating module to use value exports rather than manually return a value. During loading, Luau supplies a placeholder for an unfinished module. Reading or writing its fields before loading completes raises an error. Moving access into a function only helps if that function runs after initialization. Roblox still recommends avoiding cycles where practical.
Our recommendation is to enable the beta in a test project this week and convert a small utility module first. Check callers and state updates. Then test a mutually dependent pair, keeping module references instead of immediately extracting fields. Verify that cross-module calls wait until loading finishes before considering a broader refactor.