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

Diffrence between starter gui and player gui?

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

2 answers

✓ Accepted answer

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

2 comments

1

Thanks that worked correctly !

0

Glad I could help!

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.

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