How would i check if a player is at a certain graphics quallity?

Hey so im making a backrooms game and im trying to make a script in which if a player is at lets say: 1 graphics quallity his game gets darker, but if hes at 10 the game has more light. How would i do that?

1 Like
local userSettings=UserSettings():GetService("UserGameSettings")
local qualityLevel=userSettings.SavedQualityLevel

qualityLevel is an enum

1 Like

Where would i put this script?

This would be a local script, probably inside of starterplayerscripts.

In a local script in the client(startergui, starterplayerscripts, startercharacterscripts, etc)