I tried to put a script to remove this bug but I couldn't do it
Script:
local frame = script.Parent
game:GetService('Players').PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
character:WaitForChild("Humanoid").Died:Connect(function()
while wait(5) do
frame.Visible = false
end
end)
end)
end)

2 comments
Try turning the ResetOnDeath property of the ScreenGui to false.
Thanks! It worked!