isluau Synchronous

Check whether the running interpreter is Luau. Kawaii always returns true, but the check lets a script shared with other Lua runtimes choose its Luau-specific path.

Syntax
Luau
isluau() -> boolean

Parameters

This function takes no arguments.

Returns

boolean

true in this Kawaii build.

Usage notes

This reports the language runtime, not whether a particular Luau feature is enabled.

Example

Example
Luau
if isluau() then
    local values = table.create(3, "ready")
    print(values[1])
end
Kawaii documentation