ScreenGui.ResetOnSpawn not resetting on spawn

If this is the wrong category, let me know and I’ll move it. But here we go.

I have a GUI that needs to reset when the player respawns, and the property, “ResetOnSpawn” is set to true, but the GUIS aren’t resetting.

Quick gif showing what’s wrong:

ezgif-7-b9df07144153

That big GUI with all the pictures in it is Visible = false by default, but doesn’t go away when I reset.

Am I doing something wrong here, or is this an issue others are having too?

4 Likes

Recently I asked one question on DevForum My scripts randomly stop working after I reset my character

While trying to debug that, I tried setting ResetOnSpawn to true and false and on true the gui didn’t reset when my character OOFed. I though it’s not a big deal but since you are having the same issue as well, it might be a problem.

EDIT: I tried just now and it seems to work, idk why it didn’t work for me and it started working again.

So I did a quick test, with a new Gui and 1 line of code and it’s still not working.

update

It should have printed that twice, but it only printed it once.

Is this happening to all of your Guis or just that one Gui? If all of them are not resetting and ignoring ResetOnSpawn, you might be editing an old place file that’s using a deprecated property. Run this code in the command bar and try again:

game:GetService("StarterGui").ResetPlayerGuiOnSpawn = true
4 Likes