#Gui Loading Screen With ProgressBar

1 messages · Page 1 of 1 (latest)

tacit marlin
spark crestBOT
#

studio** You are now Level 2! **studio

lost rose
#

and u can use ReplicatedFirst:RemoveDefaultLoadingScreen() to remove the roblxo default loading screen and change to yours

#

and you also need to do ```lua
local ContentProvider = game:Getservice("ContentProvider")

#

and do a for loop like that

for index, asset in pairs(assets) do
    ContentProvider:PreloadAsync({asset})
end

#

what this will do? it will loop through every single asset and load it

#

and also use task.wait instead of wait

#

wait is deprecated

tacit marlin
#

i did do it in replicated but it bugged and made the progress frame disappear and get out f the main frame

distant yacht
#

hmm

#

i dont really know how to manipulate gui

#

but uh

#

the problem is the skip button right?

tacit marlin
#

the whole progress bar

distant yacht
tacit marlin
last reef
distant yacht
distant yacht
tacit marlin
last reef
#

heres what i did

local function updateProgressBar()
    local progress = loadedAssets / totalAssets
    progressBar.Size = UDim2.new(progress, 0, 0.1, 0)
    --[[tweenService:Create(progressBar, TweenInfoProgress, {
        Size = UDim2.new(progress, 0, 0.1, 0)
    }):Play()]]
end
distant yacht
#

then thats a bad tutorial 💀

last reef
#
for i = 1, #assetsToLoad, 25 do
    if isSkipped then break end

    local chunk = {}
    for j = i, math.min(i+24, #assetsToLoad) do
        table.insert(chunk, assetsToLoad[j])
    end

    contentProvider:PreloadAsync(chunk)
    loadedAssets += #chunk
    updateProgressBar()

    task.wait()
end
distant yacht
#

yes

#

whatever he cooked

last reef
#

infact have the whole script

tacit marlin
last reef
tacit marlin
#

am not gay"

last reef
#

ignore the ReplicatedFirst:RemoveDefaultLoadingScreen() i forgot to remove that

#

LMAO

tacit marlin
#

i have to put the whole gui in replicated storage then it loades it everytime right?

last reef
#

fyi: dont directly put this into your script you can just read and understand it

#

since our architecture varies

tacit marlin
#

yes

#

i luv u again

#

ty sir

last reef
#

np

#

just ping me when u have any questions about it cause my script is lowk dumb

tacit marlin
#

lol alr thanks

tender stag
tacit marlin
distant yacht
#
Humanoid.Running:Connect(function(speed)
  gui.frame.text = speed
end)
#

that sohuld work

#

@tacit marlin

tacit marlin
#

man i luv u

#

fr