Loading screen error

I am trying to create a load-in screen as practice to hopefully use in a future game. I am very new to programming, so I (obviously) am going to have problems that need to be solved.

After watching multiple programming tutorials on ‘How to make a loading screen (ROBLOX)’, and all of the attempts resulted in countless errors that I wasn’t able to solve.

I have asked a few programmer friends, and they say the script should work. I am resulting to the developer forum to have the answers I am looking for. If possible, please leave me details as to why my scripts aren’t working.

Images

Screen Shot 2020-11-09 at 1.11.19 PM

If you are wondering, my goal is to make an entire game with little to no help, but due to my lag of programming skills, that is put on hold until I can do so efficiently without having multiple encounters.

Tutorials I watched (that didn't work)

Roblox Loading Screen Tutorial (Read Description) - YouTube
How To Make a Loading Screen! | Roblox - YouTube

I would much appreciate support as to why these scripts do NOT in fact work as they should. If you see an error in the script, please let me know!

I deleted the second tutorial’s scripts, a friend told me that one was more complected and it usually has errors.

1 Like

since top bar got updated, you can’t set topbar transparency anymore.(delete line 4)
also, if you want to make actual loading, use

repeat
 wait(0.5)
until game:IsLoaded()
2 Likes

Thanks! I’ll try it out. I’ll let you know what the output is.

1 Like

Where do I insert that script? At the original wait line (line 10)?

yeah, replace your wait with this

Another solution:

if not game:IsLoaded() then
    game.Loaded:Wait()
end

Shouldn’t this be script.LoadingScreen:Clone()?

…and shouldn’t this be GUI.Frame:TweenPosition(…)?

1 Like

I fixed the second thing, thank you! I’m not sure where I should insert that first item:

“if not game:IsLoaded() then
game.Loaded:Wait()
end”

Just replace your wait(5) with that code.

1 Like

The loading screen STILL doesn’t work. I will try redoing the entire script and adding those changes again.

Do you see any errors in your Output window?

Let me check. I am redoing the script to see if that changes anything

The last 2 are from plugins, ignore them.

It looks like there’s an error on line 13. Can you post the full script again?

Screen Shot 2020-11-09 at 2.04.41 PM

Inside of the tween position you have an extra comma which is erroring.

You also don’t need the second repeat wait until game is loaded. The first one already yields until the game is loaded, so the second one doesn’t make sence.

1 Like

you have a type error on your tween info

2 Likes

what @Diamond_Plus1 said, and

You don’t need the repeat … until … here, the code already waits for the game to load. Replace that block with wait(0.5) if you want to wait for the tween to finish.

1 Like

Screen Shot 2020-11-09 at 2.10.36 PM

(Updated Script)

1 Like

You only check it once if it is not loaded btw