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)