Gui disappears on death

i want a gui to appear when a remote event is triggered then stay even after a character dies however after you die the gui disappears i’ve looked and tried solutions but none of them work, ResetOnSpawn is OFF

here is the script

 local ding = game.SoundService.ding
  local Value = script.Parent.Value
local ScreenGui = game.Players.LocalPlayer.PlayerGui.MainGui:WaitForChild(“Objective”)
local NewTextLabel = Instance.new(“TextLabel”)
game.ReplicatedStorage.Remotes.Cutscene1.OnClientEvent:Connect(function(player)
task.wait(11)


ScreenGui.Frame.Visible = true

end)
game.ReplicatedStorage.Remotes.up1.OnClientEvent:Connect(function()
script.Parent.Frame.Text.Text = “Walk to work”
ding:Play()
end)

game.ReplicatedStorage.Remotes.up2.OnClientEvent:Connect(function()
script.Parent.Frame.Text.Text = “Enter the back of the store”
ding:Play()
game.ReplicatedStorage.Remotes.up2:Destroy()
end)
game.ReplicatedStorage.Remotes.up3.OnClientEvent:Connect(function()
script.Parent.Frame.Text.Text = “Stock the Shelves”
ding:Play()

end)

game.ReplicatedStorage.Remotes.stockStop.OnClientEvent:Connect(function()
script.Parent.Frame.Text.Text = “Check the fuse box outside the building”
ding:Play()
game.SoundService[“Power Outage”]:Play()
end)

game.Players.LocalPlayer.CharacterAdded:Connect(function()
ScreenGui.Frame.Visible = true
end)

Have you confirmed the gui is disappearing by looking under playergui while the game is running?
Additionally (probably not relevant) but where the the script located?

Nothing in this script is destroying or otherwise hiding the UI, so the issue doesn’t appear to be here.

Also try disabling the script and make the UI visible by default. Does the UI still disappear when the script is disabled and you die?

when i disable the script and make it visible, it doesnt disappear