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

How do I run code AFTER the loading screen has disapeared?

Asked by 4 years ago

I need to run a text intro after the loading screen disappears so that the user can actually see it. I noticed that I could only see the last message as the whole thing finished before the game was finished loading.

0
provide code Gameplayer365247v2 1055 — 4y
0
the code is literally unimportant to this VikingCatto 15 — 4y
0
Gotta script? Maybe something like if the loading screen is visible then function? Rynappel 212 — 4y
0
How is the code unimportant? D: ??? The code is never unimportant. Or if you think it is, then it's a request, and this is not a request site. Miniller 562 — 4y

2 answers

Log in to vote
1
Answered by
dekkeda 30
4 years ago

You should make a script who wait for the character added. I'll give you a small tutorial

Make a script Put your text intro gui into script Now type this text into the script:

function placeintro(player) -- Make a function
    player.CharacterAdded:Wait() -- Wait for the player's character is added.
    script.urguinamehere:Clone.Parent = player.PlayerGui-- clones the gui to Players Gui folder.
end

game.PlayerAdded:Connect(placeintro) -- go to function placeintro when a new player joins the game.

Thats it note! I don't tested this code if it dont work react to me back.

Ad
Log in to vote
0
Answered by 4 years ago
game.ReplicatedFirst:RemoveDefaultLoadingScreen()

This, coupled with a wait(2) was enough to display the text intro uninterrupted.

Answer this question