Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I detect the graphics level a player is using?

How do I detect how high or low a player's graphics setting is? I've tried this:

print(tostring(game:GetService('RenderSettings').GraphicsQuality))

It just returns this:

singleton RenderSettings already exists

Can you help me? Even I can't figure this out, and I'm a great scripter.

1 comment

0

This is a repeat of https://scriptinghelpers.org/questions/21178/accessing-a-players-graphics-quality but because it's on the front page of questions again I won't complain :)

3 answers

✓ Accepted answer

Nevermind about this since the global settings() table is protected and can only be accessed by roblox corescripts and game:GetService'RenderSettings' isn't working, there is no way to access the quality level that I know of, sorry for getting your hopes up.

--[[
print(settings().Rendering.QualityLevel)  -- Quality level of the player

if settings().Rendering.QualityLevel == Enum.QualityLevel.Level21 then -- Level 10
print("Highest quality level")
elseif settings().Rendering.QualityLevel == Enum.QualityLevel.Level01 -- Level 1 
print("Lowest quality level")
end


-- The lowest value is Enum.QualityLevel.Level01 (AKA 1)
-- The highest value is Enum.QualityLevel.Level21 (AKA 10)
]]--

1 comment

0

Not a very good answer but I guess it's all I got

You can access a user's graphics level through:

UserSettings().GameSettings.SavedQualityLevel

1 comment

0

Found this question in Google Search, so after I found the answer I thought it'd be a good idea to update it.

You can do this. (ONLY use this code in a LocalScript, otherwise it will error)

print(UserSettings():GetService("UserGameSettings").SavedQualityLevel))

That code returns Enum.SavedQualitySetting.1 which is Level 1 and so on until 10. It sometimes can also return Enum.SavedQualitySetting.Automatic, in that case their level is automatically set by Roblox.

This discussion is preserved as it was. New answers, comments, and votes are closed.