Skip to content

Class · inherits GenericSettings

GlobalSettings

Official docs ↗

Collection of menu settings for Roblox Studio.

About GlobalSettings

The base object used for Roblox Studio's settings menu. Can be accessed by using the settings() function, which requires the Plugin capability.

Settings classes under the GlobalSettings

Methods 2

  • GetFFlag(name: string) → booleanReturns the value of an FFlag if it exists.

    Looks up the fast flag registered under name and returns its current value as a boolean: true when the flag's value is true, and false otherwise. Provide the flag's registered name without its type prefix, for example MyFeature rather than FFlagMyFeature. If no flag with that name is defined in the engine, the method raises an error instead of returning a value, so avoid querying flags that might not exist. Access it through the settings() global (requires the Plugin capability), as in settings():GetFFlag("MyFeature").

  • GetFVariable(name: string) → stringReturns the value of an FVariable, if it exists.

    Looks up the fast variable registered under name and returns its current value as a string. Provide the variable's registered name without its type prefix. As with GlobalSettings.GetFFlag, if no variable with that name is defined in the engine, the method raises an error rather than returning a value. Access it through the settings() global (requires the Plugin capability), as in settings():GetFVariable("MyValue").

GlobalSettings also has every member of GenericSettings. Deprecated and Roblox-only members are hidden.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.