function onButtonClicked()
game.StarterGui.Camera.settings.display.res = 30
end
script.Parent.MouseButton1Click:connect(onButtonClicked)
I'm editing this script so it changes the value of the resolution of something that I'm making. On the display.res part, it thinks that res is a property of display. How do I make this not happen?
What I'm getting in the output
23:26:06.085 - res is not a valid member of IntValue
From a confused beginner scripter

3 comments
you dont add res into the ()......
also sorry for 2 comments but it dosent work
That would error. MouseButton1Click doesn’t have parameters.