Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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)

2 comments

0

ty

0

Np :)

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

2 comments

0

And how to make the GUI visible for that player? (And change text inside the Intro gui)

0

Well if only for that player you have to use a local script inside of the gui the player will see.

This discussion is preserved as it was. New answers, comments, and votes are closed.