Syntax
setfflag(name: string, value: any): booleanArguments
| Name | Type | Description |
|---|---|---|
name | string | Exact fast flag name to set. |
value | any | Value to write. Accepted types depend on the detected flag type. |
Returns
| Name | Type | Description |
|---|---|---|
updated | boolean | true when a supported flag value was written, otherwise false. |
Description
Sets a Roblox fast flag by exact name. Accepted value types depend on the detected flag type. The function returns true after a supported write and false when the flag is missing, unsupported, or the value is not accepted.
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
Write a fast flag only after checking the flag type that Real detected for the exact name.
local flagName = "SomeFFlagName"
local flagType = getfflagtype(flagName)
if flagType == "bool" then
print(setfflag(flagName, true))
elseif flagType == "int" then
print(setfflag(flagName, 60))
elseif flagType == "string" then
print(setfflag(flagName, "Enabled"))
else
print(false)
end