I want to be able to change a gui's size or position when the screen size changes.
COMMUNITY QUESTION
How do I detect when someones screen resolution/size changes?
1 answer
This is not the very best way but at least it is doing something..
local GUI -- Put your GUI Must be a frame...
if GUI.Size == UDim2.new(0,0,0,0) -- put your size in the brackets
print("Size has not changed")
else
print("Size has changed")
end
Maybe this did not help but that is the best I can do for you..
2 comments
0
A GUI size will never be 0 unless you set it to 0. Also, that does not detect changes, nor have a then with a if statement.
0
Also, the GUI variable DOES NOT have to be a frame.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
and I want to stop moderating questions!