PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

IsUserFeatureEnabled

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.

Parameters

Name Type Default Description

Returns

Return Type Summary

Code Samples


IsUserFeatureEnabled Sample

A basic sample of how the IsUserFeatureEnabled function is used by Roblox to control certain features.

if UserSettings():IsUserFeatureEnabled("UserNoCameraClickToMove") then
	print("'ClickToMove' should no longer be loaded from the CameraScript!")
else
	print("'ClickToMove' is still loaded from the CameraScript!")
end