Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help with my script?

Asked by 10 years ago

I have this script which includes requestqueuesize, and I want it to show how much has loaded, using a loading bar. The problem is, when it goes up, it doesn't go fully up, it only goes up to halfway when it finishes loading.

while game.ContentProvider.RequestQueueSize > 0  do
    repeat wait() until game.Players.LocalPlayer.Character
    textLabel.Text = 'LOADING ASSETS: ' .. game.ContentProvider.RequestQueueSize
    --local load = game.ContentProvider.RequestQueueSize / 1
    local load = (((1 / game.ContentProvider.RequestQueueSize) * (1)) * 10) / (1 * 10)
    loadB.Size = UDim2.new(load,0,1,0)
    wait() 
end

Answer this question