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

How do i create a loading screen with a loading bar? [closed]

Asked by 6 years ago

How do i create a loading screen with a loading bar like other front page games who have them.

0
It's a bit tricky to explain, but here's a starting point: http://wiki.roblox.com/index.php?title=API:Class/ContentProvider/RequestQueueSize TheeDeathCaster 2368 — 6y

Closed as Not Constructive by H4X0MSYT, farrizbb, TheeDeathCaster, and Goulstem

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
1
Answered by
OfcPedroo 396 Moderation Voter
6 years ago

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! ;)

Ad
Log in to vote
0
Answered by 6 years ago

Please don't request without trying

0
This should be a comment, not an answer. H4X0MSYT 536 — 6y