Roblox UtilitiesDevlHub Roblox Documentation

Class

GlobalSettings

NotCreatableNotBrowsable
Memory category
Instances

Collection of menu settings for Roblox Studio.

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#

GetFFlagReturns the value of an FFlag if it exists.
GetFVariableReturns the value of an FVariable, if it exists.

GetFFlag(name: string): boolean#

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").

NameTypeDefaultDescription
namestringThe registered name of the fast flag to query, without its type prefix (for example, MyFeature rather than FFlagMyFeature).
Returns
  • boolean — true when the named flag's value is true, and false otherwise; raises an error if no flag with that name is defined.

GetFVariable(name: string): string#

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").

NameTypeDefaultDescription
namestringThe registered name of the fast variable to query, without its type prefix (for example, MyValue rather than FIntMyValue).
Returns
  • string — The current value of the named fast variable as a string; raises an error if no variable with that name is defined.

Inherited members#

Inherited from ServiceProvider 7
Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed