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

Can someone explain to me the difference between starter gui and player gui?

in what cases would i need to use player gui

3 answers

✓ Accepted answer

The roblox wiki contains documentation, but since im too lazy to look it up, here is how they work

The StarterGui is where you put all the GUI's you want players to spawn with when they join/respawn.

When a player joins/respawns, all the GUI's in StarterGui are cloned and put into the player's PlayerGui

StarterGui is a container, and for that reasons all scripts inside the StarterGui will not execute until they

are cloned into the PlayerGui

2 comments

1

I don't want to make a answer, but a Player's GUI can be set to not reset when respawned. More Info: http://wiki.roblox.com/index.php?title=API:Class/StarterGui/ResetPlayerGuiOnSpawn

0

i know this exists but i figured that its just a tiny bit advanced for this question

The children of StarterGui are sent to every new player's PlayerGui when they join the game and the children are then reset upon death (the children are sent again, unless you set this to true (can be found in StarterGui):

ResetPlayerGuiOnSpawn

Every player has a PlayerGui, they are used to store ScreenGui's to show GUI's to the player.

You can find more information on the wiki:

http://wiki.roblox.com/index.php?title=API:Class/StarterGui http://wiki.roblox.com/index.php?title=API:Class/PlayerGui

All the best, if you need more information then feel free to leave a comment.

whatever is in the startergui gets cloned to a players playergui when they spawn

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