I'm trying to code a graphics level detector so that if the players graphics are at a certain level, the lighting technology changes, and a bunch of other stuff happens. I put this localscript in both starterplayerscripts and startercharacter scripts, didn't work. Script:
local Players = game:GetService("Players") Players.PlayerAdded:Connect(function() if UserSettings().GameSettings.SavedQualityLevel >=8 then print("Graphics High") end end)
Any help is appreciated
SavedQualityLevel actually returns an Enum.
https://developer.roblox.com/en-us/api-reference/enum/SavedQualitySetting
You could get the value of the enum to compare it as a number. In the end your code would end up looking like this,
if UserSettings().GameSettings.SavedQualityLevel.Value >= 8 then -- ok end
Try making this a nonlocal script and put it into server settings.
I am not too experienced, but when I did this it usually works