GUI not filling up entire screen

So I have this weird issue where I want the GUI to fill the entire screen but it seems like there’s a tiny gap on the top of my screen and I don’t know how to get rid of it:

How can I fix this? Here’s my script if you need it:

local TweenService = game:GetService("TweenService")

local loadingScreenGui = script.Parent
local loadingScreenFrame = loadingScreenGui.LoadingScreenFrame
local loadingBarFrame = loadingScreenFrame.LoadingBarFrame
local loadingBar = loadingBarFrame.LoadingBar
local loadingBarText = loadingBarFrame.LoadingBarText

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All,false)

wait(3)

for i = 1,100 do
	wait(0.04)
	loadingBarText.Text = i.."%"
	
	local formula = i/50
	loadingBar:TweenSize(UDim2.new(formula,0,1,0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,0.1,true)
	
	if i == 12 or i == 34 or i == 67 or i == 79 or i == 91 or i == 96 or i == 97 or i == 99 then
		wait(1)
	end
end

loadingScreenFrame:TweenPosition(UDim2.new(0.5,0,-0.501,0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,0.5,true)

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All,true)
wait(0.5)
loadingScreenGui:Destroy()

Use IgnoreGuiInset and it should cover the top of it.

4 Likes

Thank you so much! It works :smiley:

1 Like