#I want to make a loading screen, a friend gave me this

1 messages · Page 1 of 1 (latest)

limber quarry
#

I'm really new at scripting, im just doing a project with my friends and we all are learning, but there is this guy who i know since a few weeks that said he know a bit more about this, so i seeked for help with him and gave me this. I want to modify or add something to the code, because its for a loading screen, and i want to add animations. The thing is, i want help because i dont understand how this works to edit it, can someone help?

Here is the script:

local LoadingText = "loading"
local textBox = script.Parent
local loadingScreen = textBox.Parent

for i = 1, #LoadingText do
    textBox.Text = string.sub(LoadingText, 1, i)
    task.wait(0.2)
end

local firstDotsCycleDone = false

while true do
    for numDots = 0, 3 do
        local dots = string.rep(".", numDots)
        textBox.Text = LoadingText .. dots
        task.wait(0.5)
        
        if not firstDotsCycleDone and numDots == 3 then
            loadingScreen.Visible = false
            firstDotsCycleDone = true
        end
    end
end
velvet beacon
#

You can use PreloadAsync or sum idk 🥹

velvet beacon
harsh cave
velvet beacon
harsh cave
steel plazaBOT
#

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

lapis hedge
limber quarry
#

Thank u all so much, I’m a bit busy with school and stuff and that, I’m at school rn and I just checked this

#

This helps me a lot

velvet beacon
harsh cave
velvet beacon
harsh cave
#

cause they may leave before they even start playing the game

velvet beacon
#

usually best option

harsh cave
velvet beacon
#

If you want the players to have the choice to either wait for the game to load properly

#

or just get in and play already

#

its their choice

#

🤷‍♂️

#

just add a skip button

#

fake loading screens would only work if you want it to look apealling if you know how to load things fast enough

#

sooo