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

Intro for game, only when entering?

Asked by 10 years ago

I'm making an intro, and it has stuff like: Play, Options, Store, Credits, etc..

However, like some games. I don't want it to show up, every time you die. How do i make it where ONLY when you (any player in the game) joins, and they can't see it again, unless they leave and join back.

I'm not looking for a model, looking for guidance to making the script myself. Thanks in advance!

1 answer

Log in to vote
2
Answered by 10 years ago

You might want to have your GUI in ServerStorage and do what I tell you. Make a new normal script in Workspace and type the code below. Just make sure you change the NAMEHERE to your Gui name.

I hope this helped.

game.Players.PlayerAdded:connect(function (newPlayer)
wait()
GUI = game.ServerStorage.NAMEHERE:Clone()
GUI.Parent = newPlayer.PlayerGui
end)
Ad

Answer this question