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

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

Asked by
Jumbuu 110
8 years ago

in what cases would i need to use player gui

3 answers

Log in to vote
2
Answered by
lukeb50 631 Moderation Voter
8 years ago

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

The StarterGuiis 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 StarterGuiare cloned and put into the player's PlayerGui

StarterGuiis a container, and for that reasons all scripts inside the StarterGuiwill not execute until they

are cloned into the PlayerGui

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 Vezious 310 — 8y
0
i know this exists but i figured that its just a tiny bit advanced for this question lukeb50 631 — 8y
Ad
Log in to vote
0
Answered by
0_0 70
8 years ago

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.

Log in to vote
0
Answered by
Prioxis 673 Moderation Voter
8 years ago

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

Answer this question