Roblox UtilitiesDevlHub Roblox Documentation

Class

UserSettings

NotCreatable
Memory category
Instances

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

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#

IsUserFeatureEnabledReturns true if the specified user feature is enabled. This will throw an error if the user feature does not exist.
ResetErases the saved state of the UserSettings, and restores its default values.

IsUserFeatureEnabled(name: string): boolean#

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.

NameTypeDefaultDescription
namestringThe name of the user feature to check. Must begin with the User prefix.
Returns
  • boolean — true if the named user feature exists and is enabled; otherwise false.

Reset(): ()#

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.

Returns
  • ()

Inherited members#

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

ClassName, className

Events (1)

Changed