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

How to make a GUI visible for a player that joins? (Like a loading screen)

Asked by 6 years ago

Does anyone know to do this. I tried to figure it out but still nothing. Does anyone has some code for me that can help me out with this issue?

Thank You!

2 answers

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

See, you would first have to put it inside the startergui as that clones when a player joins, inside the screengui, turn of 'ResetOnSpawn' as that would make it pop up when you die. (Or respawn).

To destroy it use a local script inside the gui

wait(3) -- Waittime before it destroys
script.Parent:Destroy

To change a text for example you could do something like that too

wait(1)
script.Parent.Text = 'Made by Kyno Studios'
wait(1)
script.Parent.Text = 'Welcome in the game!'

You could make it a lot harder but these are the basics. Someone answered with a PlayerAdded function, but you should ignore that as putting it in the startergui is way easier. (You would need cloning with his answer)

0
ty kyanoke11 15 — 6y
0
Np :) User#20388 0 — 6y
Ad
Log in to vote
0
Answered by
Lualaxy 78
6 years ago

So you have to use a script that does something to the player when the player connects

For example

game.Players.PlayerAdded:connect(function(player)
    print("A new player has connected")
end)

Just replace the print script with what the player gets when he connects. If you have any questions feel free to ask :D

0
And how to make the GUI visible for that player? (And change text inside the Intro gui) kyanoke11 15 — 6y
0
Well if only for that player you have to use a local script inside of the gui the player will see. Lualaxy 78 — 6y

Answer this question