How can I make not make all guis reset after player resets?
So, I was trying to find a way where the Health GUI gets a reset back to when the player is not dead anymore but when I was trying to script this, the main gui would also be resetted. Is there a way for the other GUI (ScreenGUI) not get a reset after the player resets? (or dies)
02 | local ScreenGui = script.ScreenGui |
03 | local HealthGui = script.HealthGui |
07 | game.StarterGui.ResetPlayerGuiOnSpawn = false |
08 | ScreenGui.Parent = Player:WaitForChild( "PlayerGui" ) |
10 | game.StarterGui.ResetPlayerGuiOnSpawn = true |
11 | HealthGui.Parent = Player:WaitForChild( "PlayerGui" ) |