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

How do I make a GUI Appear once a player joins?

Asked by 6 years ago

I am trying to make an Intro GUI appear for the player that joins. I've tried multiple things from here.

1 answer

Log in to vote
0
Answered by 6 years ago

Add a LocalScript inside ReplicatedFirst, place your GUI inside it and put this code inside the script:

local GUIname = "" -- Put your GUI's name between the ""
local GUI = script:WaitForChild(GUIname)
GUI.Parent = game.Players.LocalPlayer.PlayerGui
0
^ That isn't completely necessary as you can simply put the Gui in StarterGui and just add repeat wait() until game.Players.LocalPlayer Axceed_Xlr 380 — 6y
0
He asked for an Intro GUI, if I were to do what you said the GUI would keep reappearing whenever the player respawns. Le_Teapots 913 — 6y
0
Of course you could set the ResetOnSpawn property to false, but I feel for an intro GUI its best to have it load as soon as the client connects, hence why I put it on ReplicatedFirst. Le_Teapots 913 — 6y
0
tiraner300, thank you so much for the help dude, I really appreciate it! newluigibro 4 — 6y
Ad

Answer this question