I am making a loading bar in the bottom left corner of the game and for some reason it is not working, how can I fix this?
local contentprovider = game:GetService("ContentProvider")
while wait(1) do
if contentprovider.RequestQueueSize == 0 then
script.Parent.Text = "Loaded!"
wait(1)
script.Parent.Parent:Destroy()
end
end

1 comment