Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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)

-- Local Varialbes
local ScreenGui = script.ScreenGui
local HealthGui = script.HealthGui

-- Initialization

game.StarterGui.ResetPlayerGuiOnSpawn = false
ScreenGui.Parent = Player:WaitForChild("PlayerGui")

game.StarterGui.ResetPlayerGuiOnSpawn = true
HealthGui.Parent = Player:WaitForChild("PlayerGui")

4 comments

2

Use the ResetOnSpawn property of ScreenGui instead. (ScreenGui.ResetOnSpawn = false)

0

what

0

So you want one gui to disapear. And another gui to not disapear?

0

yes, how can I make this happen?

1 answer

In the Explorer tab, there is a property on the ScreenGui called ResetOnSpawn. Disable that tick.

1 comment

0

what

This discussion is preserved as it was. New answers, comments, and votes are closed.