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

Diffrence between starter gui and player gui?

Asked by 4 years ago

I want to make a gui which appears when I start the game And one will appear when the player will die

2 answers

Log in to vote
0
Answered by
EmK530 143
4 years ago

For the one that appears when you start the game simply needs to be put inside StarterGui. For the GUI that appears when the player dies also gets put in StarterGui, but make sure it's disabled! It might take a bit of scripting but here's what I would do. (Make a LocalScript inside the ScreenGui of the GUI that should appear when you die.)

while wait() do
    if game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Health == 0 then
        script.Parent.Enabled = true
        break
    end
end
1
Thanks that worked correctly ! waseem265 8 — 4y
0
Glad I could help! EmK530 143 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

GUIs in the StarterGui are transferred to the player's PlayerGui once their character spawns in. PlayerGui contains all the user interface on the player's screen, such as chat, leaderboard, etc. To make a gui that appears for someone who joins the game, you could create a GUI, put it in ReplicatedStorage or ServerStorage, and once a player joins the game, a script can copy the GUI and put it in the player's PlayerGui.

Answer this question