I have an if statement trying to check a GUI's size but I'm obviously not doing something right.
if GUIBar.Size == UDim2.new(1, 0, 1, 0) then print("Max Size") end
Hello,
I started by printing the Gui.Size then I made a little bit of thinking and arrived at this:
local player = game.Players.LocalPlayer local pgui = script.Parent local gui = pgui.ScreenGui local f = gui.Frame -- My frame. if f.Size == (UDim2.new(0,100,0,100)) then --It needs to be 3 S.F(significant figures) print("MAX") end
I am still learning RbxLua.
Thank you for reading.