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

How do I disable ResetGui On spawn?

Asked by
dirk2999 103
6 years ago

I don't want the PlayerGui to reset on spawn, I want it to keep the information and everything it has. I don't see it in the StarterGui properties.

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

If we dig into the wiki pages a little bit there are two articles of note that we will want to look at.

The first one is a deprecated property of the PlayerGui that will allow us to clone all PlayerGui guis when someone dies into their new PlayerGui (and I don't think it conflicts with StarterGui). It's because of the deprecated tag that I recommend that you don't use it.

To use supported behaviour we now look at ResetOnSpawn. When this is set true for ScreenGuis (the individual objects inside of the StarterGui) then it will clone when our player dies.

screengui.ResetOnSpawn = false -- this can also be done in the studio

One last link. The reason I was able to find these properties was by referencing this old ScriptingHelpers question.

Ad

Answer this question