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

What is the difference between PlayerGui and StarterGui?

Asked by
Jurdy 0
10 years ago

I make that mistake and im so tired of it, please explain this to me...

1 answer

Log in to vote
1
Answered by 10 years ago

I am not a expert at scripting, I have only been scripting(successfully) for about three months, but since no one has answered you, I will give it a go. PlayerGui is what is currently on that players screen. If it is in StarterGui, then every time they join or respawn, it will show up on their screen. For example, If i have a ShopGui that opens when i click a block, I would have the Gui's Parent be PlayerGui, but if I had a Health bar Gui, then i would put it in StarterGui, so that everytime I respawn, the health bar is there.

make sense? If so please give a thumbs up! If not, I am so sorry!

1
I would just like to clarify: PlayerGui is what the player is currently seeing, StarterGui is simply a holder for GUIs that will later be cloned into PlayerGui. Perci1 4988 — 10y
0
Thanks i kinda get it, but i dont get the part when you said: (if I had a Health bar Gui, then i would put it in StarterGui, so that everytime I respawn, the health bar is there.) why would the health bar dissapear? Jurdy 0 — 10y
1
When the player dies, the player is cloned, removed, then the backup is set at spawn. Which in case would delete the stuff in Player Gui and would make a fresh Player Gui. yogipanda123 120 — 10y
0
Aye, each time a player respawns, everything in PlayerGui is removed and replaced with everything in StarterGui. Perci1 4988 — 10y
Ad

Answer this question