Gui Loading with Player

Currently the StarterGui loads each player’s gui as a result of that player’s character loading. This is a bit unintuitive because most people don’t consider the ui to rely on the character. It also requires odd workarounds for cases such as loading characters based on game functionality rather than autoloading characters. In addition, when able, the StarterGui seems to load each player’s gui before each character spawns anyway (and sooner than a script is to do the same).

It is unlikely that the current behavior will be changed because of backward compatibility concerns. However, a new property of the StarterGui such as “PlayerLoadGui” could be added that would allow opting in to this new functionality (similar to a few other such properties that avoid breaking backward compatibility).

3 Likes

What, specifically, is this suggestion/new functionality? I see the complaints, but not the solution to them.

Are you suggesting that the PlayerGui should still be reset on respawn, but be guaranteed to load before the character?

Are you suggesting the PlayerGui should never reset on respawn, which already exists?

Are you suggesting that it should load ASAP on game start, before the character loads?

1 Like

We have two properties that accomplish what I think it is you’re suggesting…

CharacterAutoLoads
ResetPlayeGuiOnSpawn

What is different about your proposal? You weren’t really clear.
Edit: Meant to reply to @lastalon. Whoops

A player must have a character before any GUIs in the StarterGui will be copied into the PlayerGui, regardless of the two properties. The suggestion (if I’m not missing the point here, regardless, this is a valid point) is that this not be the case. A player shouldn’t need to have a character for GUIs to be copied into their PlayerGui.

2 Likes

Correct, the point is that the character not be associated with the gui and rather the player. The suggestion is a property that enables such functionality as to not break any existing games that rely on or expect the character to be what causes the gui to be created.

As a note, its commonplace in advanced games to place the gui elements in ReplicatedFirst/Storage and copy them over manually to get around this. However, in a perfect world this shouldn’t be necessary, as this is the job of StarterGui.

1 Like

I think the issue of no guis loading without a character is actually a bug, not an intention. I wrote a hacky fix for this a while ago but never shipped it. @Osyris might have been working on the new fix for this?

4 Likes

Yes please, been needing this lol

Would LOVE for this to get fixed so I don’t have to load the character when I don’t need to.

1 Like

It is confirmed, not a bug. It may be a bug. I’ve been told that its that way still because of legacy games.

1 Like

What do you mean? Who told you this?