I hope someone knows how to do it, i need it for my game.
you mean change a light when the graphic quality is changed? If so you can check when the UserSettings().GameSettings.SavedQualityLevel
is changed like this:
local gameSettings = UserSettings():GetService("UserGameSettings")
local function OnGraphicsChanged()
local currentLevel = gameSettings.SavedQualityLevel
-- do whatever
end
gameSettings:GetPropertyChangedSignal("SavedQualityLevel"):Connect(OnGraphicsChanged)
2 Likes
Thank you very much, but, just to be sure, where do i have to put the script?
1 Like
It has to be on the client, therefore a local script. I recommend to put it in StarterPlayerScripts since there the script will never reset when the player does, but if you do want it to reset when the player resets put it in StarterCharacterScripts
1 Like