UserSettings
A singleton object that houses basic user settings, which persist across all games on Roblox.
| Memory category | Instances |
|---|
Member index 3
Description
UserSettings is a singleton object that is used to house basic user settings, which persist across all games. Currently, it only stores the UserGameSettings object.
You can retrieve a reference to this object via the UserSettings() function, which returns it.
History 7
Members 3
IsUserFeatureEnabled
| Parameters (1) | ||
|---|---|---|
| name | string | |
| Returns (1) | ||
| bool | ||
Returns true if the specified user feature is enabled. This will throw an error if the user feature does not exist.
This function checks against a list of FFlags, whose name starts with "User". The function is intended to be used by Roblox-created scripts, and functions similarly to GlobalSettings:GetFFlag().
| Thread safety | Unsafe |
|---|
History 2
- 462 Change ThreadSafety of IsUserFeatureEnabled from to Unsafe
- 199 Add IsUserFeatureEnabled
Reset
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Returns (1) | ||
| null | ||
Erases the saved state of the UserSettings, and restores its values back to default. This function will fail to run correctly from a LocalScript, as it does not have permission to restore all of the properties in the UserGameSettings class.
| Thread safety | Unsafe |
|---|
SaveState
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Returns (1) | ||
| null | ||
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |