Miscellaneous

setfflag

Sets a Roblox fast flag by exact name.

Składnia

setfflag(name: string, value: any): boolean

Argumenty

NazwaTypOpis
namestringExact fast flag name to set.
valueanyValue to write. Accepted types depend on the detected flag type.

Zwroty

NazwaTypOpis
updatedbooleantrue when a supported flag value was written, otherwise false.

Opis

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.

Wywolaj z 2 parametrami: name, value. Tabela argumentow wyjasnia wartosci wymagane i te, ktore doprecyzowuja zachowanie.

Zwraca updated (boolean). Uzyj tabeli zwrotow, aby oddzielic wartosci sukcesu, wyniki nil i bledy do obsluzenia.

Przykład

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