Utilities

setfflag

Sets a Roblox fast flag value and reports whether it was updated.

Syntax

setfflag(name: string, value: string | boolean | number): boolean

Arguments

NameTypeDescription
namestringName of the item to read or update.
valuestring | boolean | numberNew value to write.

Returns

NameTypeDescription
updatedbooleanTrue when the flag value was updated.

Description

Sets a Roblox fast flag value and reports whether it was updated.

Call it with 2 parameter(s): name, value. The argument table explains which values are required and which ones only refine the behavior.

It returns updated (boolean). Use the returns table to separate successful values from nil results and recoverable errors.

Example

Example call with placeholder values.

local result = setfflag("example", "example")
print(result)