So i made a Local script and it works but if there were for example 4 assets remaining it would work but then after sometime i see everything is loaded and the bar doesn't tween to the end:

local MainFrame = script.Parent.Parent
local Framebar = MainFrame.Frame
local bar = Framebar.Frame
local queue = game:GetService("ContentProvider").RequestQueueSize
local Indicator = MainFrame.Indicator
local LobbyMusic = MainFrame.Frame.LobbyMusic


--//Loading Loop\\--
while true do
		Indicator.Text = "Assets Remaining:("..queue..")"
		bar:TweenSize(UDim2.new(1/queue,0,1,0),"Out","Linear",1,true)
		wait()
		if queue == 0 then
		bar:TweenSize(UDim2.new(1,0,1,0),"Out","Linear",1,true)
		Indicator.Text = "Loaded!"
		wait(4)
		MainFrame:TweenPosition(UDim2.new(0,0,-2,0),"Out","Sine",1.6,true)
		LobbyMusic:Play()
	end
	wait()
end