Skip to content

Class · inherits GenericSettings

UserSettings

Official docs ↗

A singleton object that houses basic user settings, which persist across all games on Roblox.

About UserSettings

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.

Methods 2

  • IsUserFeatureEnabled(name: string) → booleanReturns true if the specified user feature is enabled. This will throw an error if the user feature does not exist.

    Returns true if the specified user feature is enabled. This will throw an error if the user feature does not exist.

    This function checks user features whose names start with "User". It is intended for Roblox-created scripts.

  • Reset() → ()Erases the saved state of the UserSettings, and restores its default values.

    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.

UserSettings 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.