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

How do I detect Quality Level changes?

So I know as much as this, as briefly documented by the wiki:

print(UserSettings():FindService('UserGameSettings').SavedQualityLevel)

But how do I detect changes of it?

2 answers

Thanks for asking, I've wondered this too before, but just tampering with it for 5 seconds, led me to the conclusion and simple answer.

UserSettings():FindService("UserGameSettings").Changed:connect(function(one) print(one)  
	if one == "SavedQualityLevel" then 
		print("Changed!")
		print(UserSettings():FindService('UserGameSettings').SavedQualityLevel)
	end

	-- you can also use this for other things, and your welcome btw.
end)

you are free to use this for other purposes too, example:

UserSettings():FindService("UserGameSettings").Changed:connect(function(one) print(one)  
	if one == "MasterVolume" then 
		print("Changed!")
		print(UserSettings():FindService('UserGameSettings').MasterVolume)
	end

	-- you can also use this for other things, and your welcome btw.
end)

4 comments

0

Notice how I said "I dont think there is a .Changed property for that service." Dont needa be so cocky, plus you got the idea from my post. lol

1

First of all. No, I actually didn't get the idea from your post, your post was after I toyed with it. Second of all, I answered it right and it works, are you just jealous?

0

Saying "you're welcome" like that is kinda rude, since the asker never said "thank you". :/

1

"--you can also use this for other things, and your welcome btw." >> you're*

Youd probably have to use a while wait() do loop, as I dont believe the property .Changed is available for that service.

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