So I know that for a UI Frame to be a full screen it is 1,0,1,0 and the position is 0,0,0,0
But the problem is that if I did 1,0,1,0 and positioned it 0,0,0,0
There would be that little bar at the top, which would show
So I am asking for an solution what am I doing wrong
Am I right to size an GUI Frame 1.2 on the y axis of scale and then position it -0.2 on the y axis?
Or Is there something im missing here
I don't understand
I thought 1,0,1,0 was for the full screen
You're not doing anything wrong. It's just that Roblox has a 36 (thirty-six) pixel inset which moves all ScreenGui downwards by the same amount.
If you just want to cover the topbar you can either set the IgnoreGuiInset
property for a ScreenGui to false. Or you can set the position property to {0,0},{0,-36}. If you have any buttons there they won't be clickable.
If you want to also disable the topbar look here.
What I like to use is AnchorPoint. Change the Vector2 to Vector2.new(.5,.5) position dead middle for all screens.
Then I'd put the Y UDim2 on 1.2 just to be sure. Like so:
local Frame = Instance.new('Frame') Frame.Parent = UI -- obviously change this to the actual parent lol Frame.Size = UDim2.new(1,0,1.2,0) Frame.AnchorPoint = Vector2.new(.5,.5)
Ok I am going to use my formula The Frame's size should be {1,0}{1.1,0} Then the Frame's position should be {0,0}{0,-35} You can use anchor point or not.