How do i create a loading screen with a loading bar like other front page games who have them.
How do i create a loading screen with a loading bar?
2 answers
Hey, it's not hard. In fact, I made that myself in my game.
You just gotta create a Gui, which has a Frame inside. Then, make the Frame size be (1, 0, 1, 0) (No Offset, Scale "1" in both).
Then, with scripting, make it disappear. I'll give you a taste of a thing.
Create your gui, name it "Intro". Done?
Create a frame inside the gui, name it "Main". Done?
Make the size of the Frame be 1 in scale and 0 in offset, in both X and Z on the size.
The frame must use all the screen, right? Good.
Now put the Frame's ZIndex (a intvalue) be 5, so it will always show on top of other guis.
Now, inside of the gui (not the frame), insert a LocalScript. Got it?
Oh yeah, leave the frame's position everything on 0. EVERYTHING.
Write the following
repeat wait() until game.Players.LocalPlayer.Character
repeat wait() until game.Players.LocalPlayer:WaitForChild("PlayerGui")
--2 roblox bugs fixed ;)
repeat wait() until game.Players.LocalPlayer.PlayerGui:WaitForChild("Intro")
--make the game wait for our Intro.
wait(5) --The seconds that the gui should remain intact, without anything happening...
game.Players.LocalPlayer.PlayerGui.Intro.Main:TweenPosition(UDim2.new(0, 0, 1, 0), "In", "Quad", 0.5) --Make the gui smoothly disappear in .5 seconds. You can always change the 0.5 value, but I suggest you leave the rest as it is.
And it should be it. If it helped you, leave this as the solution. If you want to learn more about Gui Tweening, follow this link: http://wiki.roblox.com/index.php?title=Gui_Tweening
As always, good scripting! ;)
Please don't request without trying
1 comment
This should be a comment, not an answer.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
It's a bit tricky to explain, but here's a starting point: http://wiki.roblox.com/index.php?title=API:Class/ContentProvider/RequestQueueSize